All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.yahoo.vespa.model.builder.xml.dom.chains.ChainedComponentModelBuilder Maven / Gradle / Ivy

There is a newer version: 8.441.21
Show newest version
// Copyright Vespa.ai. 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);
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy