Package com.yahoo.config.model.graph
Class ModelGraphBuilder
java.lang.Object
com.yahoo.config.model.graph.ModelGraphBuilder
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
-
Method Summary
Modifier and TypeMethodDescriptionaddBuilder
(ConfigModelBuilder<? extends ConfigModel> builder) Add aConfigModelBuilder
to this graph.build()
Build aModelGraph
based on theConfigModelBuilder
s added to this.
-
Constructor Details
-
ModelGraphBuilder
public ModelGraphBuilder()
-
-
Method Details
-
addBuilder
Add aConfigModelBuilder
to this graph.- Parameters:
builder
- TheConfigModelBuilder
to add.- Returns:
- this for convenience
-
build
Build aModelGraph
based on theConfigModelBuilder
s added to this.- Returns:
- A
ModelGraph
representing the dependency graph.
-