Class ConfigurationMemoryMap
java.lang.Object
com.pnfsoftware.jeb.core.properties.impl.ConfigurationMemoryMap
- All Implemented Interfaces:
IConfiguration
In-memory
IConfiguration implementation backed by a hash map.-
Constructor Summary
ConstructorsConstructorDescriptionCreate an empty in-memory configuration.ConfigurationMemoryMap(IConfiguration template) Create an in-memory configuration by copying all properties from a template. -
Method Summary
Modifier and TypeMethodDescriptionvoidclearProperty(String key) Remove a property from the configuration object.Get the collection of all property keys held by this configuration object.getProperty(String key) Retrieve a property value.voidsetProperty(String key, Object value) Set a property value.toString()
-
Constructor Details
-
ConfigurationMemoryMap
public ConfigurationMemoryMap()Create an empty in-memory configuration. -
ConfigurationMemoryMap
Create an in-memory configuration by copying all properties from a template.- Parameters:
template- template configuration
-
-
Method Details
-
setProperty
Description copied from interface:IConfigurationSet a property value.- Specified by:
setPropertyin interfaceIConfiguration- Parameters:
key- the property keyvalue- the property value
-
getProperty
Description copied from interface:IConfigurationRetrieve a property value.- Specified by:
getPropertyin interfaceIConfiguration- Parameters:
key- the property key- Returns:
- the property value, null if the property does not exist
-
clearProperty
Description copied from interface:IConfigurationRemove a property from the configuration object.- Specified by:
clearPropertyin interfaceIConfiguration- Parameters:
key- the property key
-
getAllPropertyKeys
Description copied from interface:IConfigurationGet the collection of all property keys held by this configuration object.- Specified by:
getAllPropertyKeysin interfaceIConfiguration- Returns:
- the set of currently defined property keys
-
toString
-