Search in sources :

Example 1 with DomProcessingBuilder

use of com.yahoo.vespa.model.builder.xml.dom.chains.processing.DomProcessingBuilder in project vespa by vespa-engine.

the class ContainerModelBuilder method addProcessing.

private void addProcessing(Element spec, ContainerCluster cluster) {
    Element processingElement = XML.getChild(spec, "processing");
    if (processingElement != null) {
        addIncludes(processingElement);
        cluster.setProcessingChains(new DomProcessingBuilder(null).build(cluster, processingElement), serverBindings(processingElement, ProcessingChains.defaultBindings));
        validateAndAddConfiguredComponents(cluster, processingElement, "renderer", ContainerModelBuilder::validateRendererElement);
    }
}
Also used : DomProcessingBuilder(com.yahoo.vespa.model.builder.xml.dom.chains.processing.DomProcessingBuilder) ModelElement(com.yahoo.vespa.model.builder.xml.dom.ModelElement) Element(org.w3c.dom.Element)

Example 2 with DomProcessingBuilder

use of com.yahoo.vespa.model.builder.xml.dom.chains.processing.DomProcessingBuilder in project vespa by vespa-engine.

the class ProcessingChainsTest method setupProcessingChains.

@Before
public void setupProcessingChains() {
    DomProcessingBuilder processingBuilder = new DomProcessingBuilder(null);
    processingBuilder.build(root, servicesXml());
    processingChains = (Chains<ProcessingChain>) root.getChildren().get("processing");
}
Also used : DomProcessingBuilder(com.yahoo.vespa.model.builder.xml.dom.chains.processing.DomProcessingBuilder) ProcessingChain(com.yahoo.vespa.model.container.processing.ProcessingChain) Before(org.junit.Before)

Aggregations

DomProcessingBuilder (com.yahoo.vespa.model.builder.xml.dom.chains.processing.DomProcessingBuilder)2 ModelElement (com.yahoo.vespa.model.builder.xml.dom.ModelElement)1 ProcessingChain (com.yahoo.vespa.model.container.processing.ProcessingChain)1 Before (org.junit.Before)1 Element (org.w3c.dom.Element)1