Package com.yahoo.config.model
Class MapConfigModelRegistry
java.lang.Object
com.yahoo.config.model.ConfigModelRegistry
com.yahoo.config.model.MapConfigModelRegistry
- Author:
- Ulf Lilleengen
-
Constructor Summary
ConstructorDescriptionMapConfigModelRegistry
(com.yahoo.component.provider.ComponentRegistry<? extends ConfigModelBuilder> registry) Constructs a registry of config models, where the components are injected.MapConfigModelRegistry
(Collection<? extends ConfigModelBuilder> builderCollection) Constructs a registry of config models. -
Method Summary
Modifier and TypeMethodDescriptionstatic ConfigModelRegistry
createFromList
(ConfigModelBuilder<? extends ConfigModel>... builders) Create a registry from a variable argument list of builders.resolve
(ConfigModelId id) Returns the builders this id resolves to both in this and any chained registry.Methods inherited from class com.yahoo.config.model.ConfigModelRegistry
chained
-
Constructor Details
-
MapConfigModelRegistry
@Inject public MapConfigModelRegistry(com.yahoo.component.provider.ComponentRegistry<? extends ConfigModelBuilder> registry) Constructs a registry of config models, where the components are injected.- Parameters:
registry
- a component registry
-
MapConfigModelRegistry
Constructs a registry of config models.- Parameters:
builderCollection
- A collection of builders used to populate the registry.
-
-
Method Details
-
resolve
Description copied from class:ConfigModelRegistry
Returns the builders this id resolves to both in this and any chained registry.- Specified by:
resolve
in classConfigModelRegistry
- Returns:
- the resolved config model builders, or an empty list (never null) if none
-
createFromList
@SafeVarargs public static ConfigModelRegistry createFromList(ConfigModelBuilder<? extends ConfigModel>... builders) Create a registry from a variable argument list of builders.- Parameters:
builders
- A variable argument list of builders to use in this map- Returns:
- a ConfigModelRegistry instance.
-