public interface CommonConfigStore<T extends AbstractCommonConfig>
Modifier and Type | Method and Description |
---|---|
T |
getConfig(String name)
Retrieves a config by name from the loaded collection
|
Collection<T> |
getConfigs()
Returns the loaded config collection
|
T |
getWrapperConfig()
Returns current wrapper config
|
void |
register(T config)
Registers a config in the store; the new config will affect runtime the first time the store is reloaded.
|
void |
reload()
Reloads the store, which involves iterating over the registered configs and creating a collection that is
returned when calling getConfig(..) / getConfigs().
|
void |
setWrapperConfig(T config,
boolean reload)
Sets a wrapper config, to be merged with any registered config.
|
void |
unload()
Unloads the store, cleaning up the loaded collection.
|
void |
unregister(T config)
Unregisters a config in the store; the runtime will be affected the first time the store is reloaded.
|
void register(T config)
config
- void unregister(T config)
config
- void reload()
void unload()
void setWrapperConfig(T config, boolean reload)
config
- reload
- Whether to reload the store after having set the wrapper or notT getWrapperConfig()
T getConfig(String name)
name
- Collection<T> getConfigs()
Copyright © 2016 JBoss, by Red Hat. All rights reserved.