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.
- Author:
- Ulf Lilleengen
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddBuilder(ConfigModelBuilder<? extends ConfigModel> builder) Add aConfigModelBuilderto this graph.build()Build aModelGraphbased on theConfigModelBuilders added to this.
-
Constructor Details
-
ModelGraphBuilder
public ModelGraphBuilder()
-
-
Method Details
-
addBuilder
Add aConfigModelBuilderto this graph.- Parameters:
builder- TheConfigModelBuilderto add.- Returns:
- this for convenience
-
build
Build aModelGraphbased on theConfigModelBuilders added to this.- Returns:
- A
ModelGraphrepresenting the dependency graph.
-