Package com.yahoo.config.model.graph
Class ModelGraphBuilder
- java.lang.Object
-
- com.yahoo.config.model.graph.ModelGraphBuilder
-
public class ModelGraphBuilder extends java.lang.Object
Used to add builders and elements in addBuilder, and then build a dependency graph based on the constructor arguments.- Since:
- 5.1
- Author:
- Ulf Lilleengen
-
-
Constructor Summary
Constructors Constructor Description ModelGraphBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ModelGraphBuilder
addBuilder(ConfigModelBuilder<? extends ConfigModel> builder)
Add aConfigModelBuilder
to this graph.ModelGraph
build()
Build aModelGraph
based on theConfigModelBuilder
s added to this.
-
-
-
Method Detail
-
addBuilder
public ModelGraphBuilder addBuilder(ConfigModelBuilder<? extends ConfigModel> builder)
Add aConfigModelBuilder
to this graph.- Parameters:
builder
- TheConfigModelBuilder
to add.- Returns:
- this for convenience
-
build
public ModelGraph build()
Build aModelGraph
based on theConfigModelBuilder
s added to this.- Returns:
- A
ModelGraph
representing the dependency graph.
-
-