Package com.yahoo.config.model.graph
Class ModelNode<MODEL extends ConfigModel>
java.lang.Object
com.yahoo.config.model.graph.ModelNode<MODEL>
- All Implemented Interfaces:
ConfigModelInstanceFactory<MODEL>
public class ModelNode<MODEL extends ConfigModel>
extends Object
implements ConfigModelInstanceFactory<MODEL>
Represents a node in the dependency graph, and contains information about a builders dependencies.
Constructor signatures of model classes must have ConfigModelContext as the first argument and
ConfigModel subclasses or Collection of ConfigModels as subsequent arguments.
Only Collection, not Collection subtypes can be used.
- Author:
- Ulf Lilleengen
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateModel
(ConfigModelContext context) Create an instance ofConfigModel
given the input context.
-
Field Details
-
builder
-
-
Constructor Details
-
ModelNode
-
-
Method Details
-
createModel
Description copied from interface:ConfigModelInstanceFactory
Create an instance ofConfigModel
given the input context.- Specified by:
createModel
in interfaceConfigModelInstanceFactory<MODEL extends ConfigModel>
- Parameters:
context
- TheConfigModelContext
to use.- Returns:
- an instance of
ConfigModel
-