|
FusionReactor API v3.0.1 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ConfigurationSurrogate
This interface specifies the public members of a FusionReactor Configuration object.
Method Summary | |
---|---|
void |
applyChanges(Map changes)
Apply a set of changes to this configuration object. |
void |
assertValidity()
Check whether the currently loaded configuration is valid. |
Properties |
getAsProperties()
|
boolean |
getBooleanValue(String name)
|
boolean |
getBooleanValue(String name,
boolean defaultValue)
|
int |
getIntValue(String name)
|
int |
getIntValue(String name,
int defaultValue)
|
Iterator |
getKeyIterator()
|
String |
getStringValue(String name)
|
String |
getStringValue(String name,
String defaultValue)
|
Iterator |
getValueIterator()
|
int |
getVersion()
|
void |
removeKey(String key)
Remove a key from the configuration. |
void |
setValue(String key,
String value)
Insert a new configuration key/value into the store. |
Method Detail |
---|
void applyChanges(Map changes)
changes
- the changes to apply.void assertValidity() throws ConfigurationInvalidExceptionSurrogate
com.intergral.fusionreactor.config.ConfigurationInvalidException
- if the configuration is not valid
ConfigurationInvalidExceptionSurrogate
Properties getAsProperties()
boolean getBooleanValue(String name, boolean defaultValue)
name
- the name of the value being soughtdefaultValue
- the default value to be returned if the named parameter was not found
boolean getBooleanValue(String name)
name
- the name of the parameter being sought
int getIntValue(String name, int defaultValue)
name
- the key to be soughtdefaultValue
- the default value to be returned
int getIntValue(String name) throws NumberFormatException, NullPointerException
NumberFormatException
- if the given element could not be coerced to int (via Integer)
NullPointerException
- if the key does not existIterator getKeyIterator()
Iterator
over set of configuration keys held by this object.String getStringValue(String name, String defaultValue)
name
- the key to be soughtdefaultValue
- the default value to be returned
String getStringValue(String name)
name
- the name of the value to be returned
Iterator getValueIterator()
int getVersion()
void removeKey(String key)
key
- the key to be removed from the configuration.void setValue(String key, String value)
key
- the name of the value being storedvalue
- the value being stored
|
FusionReactor API v3.0.1 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |