Class ConfigModelBuilder<MODEL extends ConfigModel>

    • Constructor Detail

      • ConfigModelBuilder

        public ConfigModelBuilder​(java.lang.Class<MODEL> configModelClass)
    • Method Detail

      • handlesElements

        public abstract java.util.List<ConfigModelId> handlesElements()
        Method that must return the XML elements this builder handles. Subclasses must implement this in order to get called when one of the elements have been encountered when parsing.
        Returns:
        A list of elements that this builder handles.
      • build

        public final MODEL build​(DeployState deployState,
                                 VespaModel vespaModel,
                                 ConfigModelRepo configModelRepo,
                                 AbstractConfigProducer parent,
                                 org.w3c.dom.Element spec)
        Builds an instance of this component model. This calls instantiate(...), instance.setUp(...), doBuild(instance, ...).
        Parameters:
        deployState - a global deployment state used for this model.
        parent - the root config producer this should be added to
        spec - the XML element this is constructed from
      • build

        public MODEL build​(ConfigModelInstanceFactory<MODEL> factory,
                           org.w3c.dom.Element spec,
                           ConfigModelContext context)
        Builds an instance of this component model. This calls instantiate(...), instance.setUp(...), doBuild(instance, ...).
        Parameters:
        factory - A factory capable of creating models.
        spec - the XML element this is constructed from
        context - A context object containing various data used by builders.
      • getModelClass

        public java.lang.Class<MODEL> getModelClass()
      • equals

        public boolean equals​(java.lang.Object other)
        Overrides:
        equals in class java.lang.Object