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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateModel(ConfigModelContext context) Create an instance ofConfigModelgiven the input context.
-
Field Details
-
builder
-
-
Constructor Details
-
ModelNode
-
-
Method Details
-
createModel
Description copied from interface:ConfigModelInstanceFactoryCreate an instance ofConfigModelgiven the input context.- Specified by:
createModelin interfaceConfigModelInstanceFactory<MODEL extends ConfigModel>- Parameters:
context- TheConfigModelContextto use.- Returns:
- an instance of
ConfigModel
-