public interface ConfigurationSurrogate
This interface specifies the public members of a FusionReactor Configuration object.
Clients use this class to interact with FusionReactor's configuration. Changes are reflected immediately in the stored configuration but some may require a restart in order to become visible in the application.
Modifier and Type | Method and Description |
---|---|
void |
applyChanges(java.util.Map changes)
Apply a set of changes to this configuration object.
|
void |
assertValidity()
Check whether the currently loaded configuration is valid.
|
java.util.Properties |
getAsProperties() |
boolean |
getBooleanValue(java.lang.String name) |
boolean |
getBooleanValue(java.lang.String name,
boolean defaultValue) |
int |
getIntValue(java.lang.String name) |
int |
getIntValue(java.lang.String name,
int defaultValue) |
java.util.Iterator |
getKeyIterator() |
java.lang.String |
getStringValue(java.lang.String name) |
java.lang.String |
getStringValue(java.lang.String name,
java.lang.String defaultValue) |
int |
getVersion() |
void |
removeKey(java.lang.String key)
Remove a key from the configuration.
|
void |
setValue(java.lang.String key,
java.lang.String value)
Insert a new configuration key/value into the store.
|
void applyChanges(java.util.Map changes)
changes
- the changes to apply.void assertValidity() throws ConfigurationInvalidExceptionSurrogate
ConfigurationInvalidExceptionSurrogate
- if the configuration is not validjava.util.Properties getAsProperties()
boolean getBooleanValue(java.lang.String name, boolean defaultValue)
name
- the name of the value being sought.defaultValue
- the default value to be returned if the named parameter was not found.boolean getBooleanValue(java.lang.String name)
name
- the name of the parameter being sought.int getIntValue(java.lang.String name, int defaultValue)
name
- the name of the parameter being sought.defaultValue
- the default value to be returned.int getIntValue(java.lang.String name) throws java.lang.NumberFormatException, java.lang.NullPointerException
name
- the name of the value being sought.java.lang.NumberFormatException
- if the given element could not be coerced to int (via Integer)java.lang.NullPointerException
- if the key does not existjava.util.Iterator getKeyIterator()
Iterator
over set of configuration keys held by this object.java.lang.String getStringValue(java.lang.String name, java.lang.String defaultValue)
name
- the name of the parameter being sought.defaultValue
- the default value to be returned.defaultValue
if the named value is not found.java.lang.String getStringValue(java.lang.String name)
name
- the name of the parameter being sought.int getVersion()
void removeKey(java.lang.String key)
key
- the key to be removed from the configuration.void setValue(java.lang.String key, java.lang.String value)
key
- the name of the value being storedvalue
- the value being storedCopyright © 2005-2019 Intergral Information Solutions GmbH. All Rights Reserved.