aboutsummaryrefslogtreecommitdiffstats
path: root/config-model/src/main/java/com/yahoo/vespa/model/container/component/ComponentGroup.java
blob: 21cd559eef415d99482fe951c653275cf79aa476 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.model.container.component;

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

/**
 * @author Tony Vaagenes
 */
public class ComponentGroup <CGCHILD extends Component<?, ?>> extends ConfigProducerGroup<CGCHILD> {

    public ComponentGroup(TreeConfigProducer<AnyConfigProducer> parent, String subId) {
        super(parent, subId);
    }

    public void addComponent(CGCHILD producer) {
        super.addComponent(producer.getComponentId(), producer);
    }

}