|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Adds modification capabilities to the ConfigProvider.
Note: Implementations of this interface must be threadsafe.
| Method Summary | |
void |
addConfigurationDescription(ConfigurationDescriptor configurationDescriptor)
Adds a ConfigurationDescriptor to this ConfigManager.
|
void |
addValue(java.lang.Class keyClass,
java.lang.Object value)
Registers a global implementation for an interface. |
void |
addValue(java.lang.String key,
java.lang.Object value)
Adds a value to the configuration. |
void |
addValuesWithReader(ConfigReader configReader)
Adds object values using the ConfigReader to the configuration.
|
| Methods inherited from interface com.sdm.quasar.client.core.common.config.ConfigProvider |
getConfiguration, getValue, getValue, hasConfiguration, requireValue |
| Method Detail |
public void addValue(java.lang.String key,
java.lang.Object value)
key - the key to the configuration entryvalue - the value of the configuration entry, may be null.
public void addValue(java.lang.Class keyClass,
java.lang.Object value)
ConfigProvider.getValue(Class).
Note The keyClass will be stored as full qualified
class name.
keyClass - the key classvalue - the implementation for the given key classpublic void addConfigurationDescription(ConfigurationDescriptor configurationDescriptor)
ConfigurationDescriptor to this ConfigManager.
In advantage to adding a simple key-value-mapping, ConfigurationDescriptors
allow lazy instantiation of the configuration values.
configurationDescriptor - the ConfigurationDescriptor (not null)
public void addValuesWithReader(ConfigReader configReader)
throws java.io.IOException
ConfigReader to the configuration.
configReader - the ConfigReader to be used for reading the file and
creating the configuration value
java.io.IOException - if an exception occurs while reading the file.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||