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 | Description | 
|---|---|---|
| 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) | |
| 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. | 
void applyChanges(Map changes)
changes - the changes to apply.void assertValidity()
             throws ConfigurationInvalidExceptionSurrogate
ConfigurationInvalidExceptionSurrogate - if the configuration is not validProperties getAsProperties()
boolean getBooleanValue(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(String name)
name - the name of the parameter being sought.int getIntValue(String name, int defaultValue)
name - the name of the parameter being sought.defaultValue - the default value to be returned.int getIntValue(String name) throws NumberFormatException, NullPointerException
name - the name of the value being sought.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 name of the parameter being sought.defaultValue - the default value to be returned.defaultValue if the named value is not found.String getStringValue(String name)
name - the name of the parameter being sought.int getVersion()
void removeKey(String key)
key - the key to be removed from the configuration.Copyright © 2005-2025 Intergral Information Solutions GmbH. All Rights Reserved.