aboutsummaryrefslogtreecommitdiffstats
path: root/config-model/src/main/java/com/yahoo/vespa/model/SimpleConfigProducer.java
blob: ae5211bbf1862611cfcf272c373a42f3985de568 (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
27
28
29
30
31
32
// 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.producer.AnyConfigProducer;
import com.yahoo.config.model.producer.TreeConfigProducer;

/**
 * Some configuration level with no special handling of its own.
 *
 * @author arnej27959
 */
public final class SimpleConfigProducer<T extends AnyConfigProducer> extends TreeConfigProducer<T> {

    private static final long serialVersionUID = 1L;

    /**
     * Creates a new instance
     *
     * @param parent   parent ConfigProducer.
     * @param configId name of this instance
     */
    public SimpleConfigProducer(TreeConfigProducer<?> parent, String configId) {
        super(parent, configId);
    }

    //Ease access restriction
    @Override
    public void addChild(T child) {
        super.addChild(child);
    }

}