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 java.lang.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 Modifier and Type Field Description ConfigModelBuilder<MODEL>
builder
-
Constructor Summary
Constructors Constructor Description ModelNode(ConfigModelBuilder<MODEL> builder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MODEL
createModel(ConfigModelContext context)
Create an instance ofConfigModel
given the input context.
-
-
-
Field Detail
-
builder
public final ConfigModelBuilder<MODEL extends ConfigModel> builder
-
-
Constructor Detail
-
ModelNode
public ModelNode(ConfigModelBuilder<MODEL> builder)
-
-
Method Detail
-
createModel
public MODEL createModel(ConfigModelContext context)
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
-
-