Package com.yahoo.config.model
Class ConfigModelRegistry
- java.lang.Object
-
- com.yahoo.config.model.ConfigModelRegistry
-
- Direct Known Subclasses:
MapConfigModelRegistry
,NullConfigModelRegistry
,VespaConfigModelRegistry
public abstract class ConfigModelRegistry extends java.lang.Object
A resolver of implementations of named config models. Registries may be chained in a chain of command.- Author:
- bratseth
-
-
Constructor Summary
Constructors Constructor Description ConfigModelRegistry()
ConfigModelRegistry(ConfigModelRegistry chained)
Creates a config model class registry which forwards unresolved requests to the argument instance
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description ConfigModelRegistry
chained()
abstract java.util.Collection<ConfigModelBuilder>
resolve(ConfigModelId id)
Returns the builders this id resolves to both in this and any chained registry.
-
-
-
Constructor Detail
-
ConfigModelRegistry
public ConfigModelRegistry()
-
ConfigModelRegistry
public ConfigModelRegistry(ConfigModelRegistry chained)
Creates a config model class registry which forwards unresolved requests to the argument instance
-
-
Method Detail
-
resolve
public abstract java.util.Collection<ConfigModelBuilder> resolve(ConfigModelId id)
Returns the builders this id resolves to both in this and any chained registry.- Returns:
- the resolved config model builders, or an empty list (never null) if none
-
chained
public ConfigModelRegistry chained()
-
-