blob: c27569aa104e70355edff5449c5fa75bce36d971 (
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
|
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.model.builder.xml.dom.chains;
import com.yahoo.container.bundle.BundleInstantiationSpecification;
import com.yahoo.component.chain.model.ChainedComponentModel;
import com.yahoo.vespa.model.container.xml.BundleInstantiationSpecificationBuilder;
import org.w3c.dom.Element;
/**
* Builds a regular ChainedComponentModel from an element.
* @author Tony Vaagenes
*/
public class ChainedComponentModelBuilder extends GenericChainedComponentModelBuilder {
protected final BundleInstantiationSpecification bundleInstantiationSpec;
public ChainedComponentModelBuilder(Element spec) {
super(spec);
bundleInstantiationSpec = BundleInstantiationSpecificationBuilder.build(spec);
}
public ChainedComponentModel build() {
return new ChainedComponentModel(bundleInstantiationSpec, dependencies);
}
}
|