Package com.yahoo.config.model
Class ConfigModelRepo
java.lang.Object
com.yahoo.config.model.ConfigModelRepo
- All Implemented Interfaces:
ConfigModelRepoAdder,Iterable<ConfigModel>
A collection of config model instances owned by a system model
- Author:
- gjoranv
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(ConfigModel model) Adds a new config model instance in thisasMap()Returns a read-only view of the config model instances of thisReturns a config model for a given id<T extends ConfigModel>
List<T>iterator()Returns the models in this as an iteratorvoidprepareConfigModels(DeployState deployState) Initialize part 2.: Prepare all config models for starting.voidreadConfigModels(DeployState deployState, VespaModel vespaModel, VespaModelBuilder builder, ApplicationConfigProducerRoot root, ConfigModelRegistry configModelRegistry) Initialize part 1.: Reads the config models used in the application package.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
ConfigModelRepo
public ConfigModelRepo()
-
-
Method Details
-
get
Returns a config model for a given id- Parameters:
id- the id of the model to return- Returns:
- the model, or none if a model with this id is not present in this
-
add
Adds a new config model instance in this- Specified by:
addin interfaceConfigModelRepoAdder
-
iterator
Returns the models in this as an iterator- Specified by:
iteratorin interfaceIterable<ConfigModel>
-
asMap
Returns a read-only view of the config model instances of this -
readConfigModels
public void readConfigModels(DeployState deployState, VespaModel vespaModel, VespaModelBuilder builder, ApplicationConfigProducerRoot root, ConfigModelRegistry configModelRegistry) throws IOException Initialize part 1.: Reads the config models used in the application package.- Throws:
IOException
-
prepareConfigModels
Initialize part 2.: Prepare all config models for starting. Must be called after plugins are loaded and frozen. -
getModels
-
getRouting
-
getContent
-