aboutsummaryrefslogtreecommitdiffstats
path: root/config-model/src/main/java/com/yahoo/vespa/model/Client.java
blob: 471c258fff0c4a6d8d5f9158a0f113eaa9bb4370 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.model;

import com.yahoo.config.model.ApplicationConfigProducerRoot;
import com.yahoo.config.model.producer.AnyConfigProducer;
import com.yahoo.config.model.producer.TreeConfigProducer;

/**
 * This is a placeholder config producer that makes global configuration available through a single identifier. This
 * is added directly to the {@link ApplicationConfigProducerRoot} producer, and so can be accessed by the simple "client" identifier.
 *
 * @author Simon Thoresen Hult
 */
public class Client extends TreeConfigProducer<AnyConfigProducer> {

    /**
     * Constructs a client config producer that is added as a child to
     * the given config producer.
     *
     * @param parent The parent config producer.
     */
    public Client(TreeConfigProducer<? super Client> parent) {
        super(parent, "client");
    }

}