Class LegacyConfigModelBuilder<MODEL extends ConfigModel>
java.lang.Object
com.yahoo.component.AbstractComponent
com.yahoo.config.model.builder.xml.ConfigModelBuilder<MODEL>
com.yahoo.vespa.model.builder.xml.dom.LegacyConfigModelBuilder<MODEL>
- All Implemented Interfaces:
com.yahoo.component.Component
,com.yahoo.component.Deconstructable
,com.yahoo.config.model.api.ConfigModelPlugin
,Comparable<com.yahoo.component.Component>
public abstract class LegacyConfigModelBuilder<MODEL extends ConfigModel>
extends ConfigModelBuilder<MODEL>
A model builder that can be used to deal with toplevel config overrides and create another
producer in between. This should not be used by new model plugins.
- Author:
- Ulf Lilleengen
-
Field Summary
Fields inherited from class com.yahoo.component.AbstractComponent
isDeconstructable
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild
(ConfigModelInstanceFactory<MODEL> factory, Element spec, ConfigModelContext context) Builds an instance of this component model.Methods inherited from class com.yahoo.config.model.builder.xml.ConfigModelBuilder
build, doBuild, equals, getModelClass, handlesElements
Methods inherited from class com.yahoo.component.AbstractComponent
clone, compareTo, deconstruct, getClassName, getId, getIdString, hasInitializedId, initId, isDeconstructable, setIsDeconstructable, toString
-
Constructor Details
-
LegacyConfigModelBuilder
-
-
Method Details
-
build
public MODEL build(ConfigModelInstanceFactory<MODEL> factory, Element spec, ConfigModelContext context) Description copied from class:ConfigModelBuilder
Builds an instance of this component model. This calls instantiate(...), instance.setUp(...), doBuild(instance, ...).- Overrides:
build
in classConfigModelBuilder<MODEL extends ConfigModel>
- Parameters:
factory
- A factory capable of creating models.spec
- the XML element this is constructed fromcontext
- A context object containing various data used by builders.
-