Search in sources :

Example 1 with DocprocChains

use of com.yahoo.vespa.model.container.docproc.DocprocChains in project vespa by vespa-engine.

the class ContainerModelBuilder method buildDocproc.

private ContainerDocproc buildDocproc(ContainerCluster cluster, Element spec) {
    Element docprocElement = XML.getChild(spec, "document-processing");
    if (docprocElement == null)
        return null;
    addIncludes(docprocElement);
    DocprocChains chains = new DomDocprocChainsBuilder(null, false).build(cluster, docprocElement);
    ContainerDocproc.Options docprocOptions = DocprocOptionsBuilder.build(docprocElement);
    return new ContainerDocproc(cluster, chains, docprocOptions, !standaloneBuilder);
}
Also used : ModelElement(com.yahoo.vespa.model.builder.xml.dom.ModelElement) Element(org.w3c.dom.Element) DocprocChains(com.yahoo.vespa.model.container.docproc.DocprocChains) DomDocprocChainsBuilder(com.yahoo.vespa.model.builder.xml.dom.chains.docproc.DomDocprocChainsBuilder) ContainerDocproc(com.yahoo.vespa.model.container.docproc.ContainerDocproc)

Aggregations

ModelElement (com.yahoo.vespa.model.builder.xml.dom.ModelElement)1 DomDocprocChainsBuilder (com.yahoo.vespa.model.builder.xml.dom.chains.docproc.DomDocprocChainsBuilder)1 ContainerDocproc (com.yahoo.vespa.model.container.docproc.ContainerDocproc)1 DocprocChains (com.yahoo.vespa.model.container.docproc.DocprocChains)1 Element (org.w3c.dom.Element)1