Package com.portal.pcm.configuration
Class PropertiesConfiguration
java.lang.Object
com.portal.pcm.configuration.BaseConfiguration
com.portal.pcm.configuration.PropertiesConfiguration
- All Implemented Interfaces:
Configuration
Configuration class which provides a hierarchical view of the configuration values that
are loaded from a resource bundle.
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor for empty properties ...Constructor to build a configuration from a simple resource bundle.PropertiesConfiguration(ResourceBundle rb, String appKey) Constructuor to build a configuration from a resource bundle, and return the entries that apply only to the given application key. -
Method Summary
Methods inherited from class com.portal.pcm.configuration.BaseConfiguration
addKey, getBlock, getBlockKeys, getBlockKeys, getBoolean, getInteger, getLong, getOptionalBlock, getOptionalBoolean, getOptionalBoolean, getOptionalInteger, getOptionalInteger, getOptionalLong, getOptionalLong, getOptionalString, getOptionalString, getString, getValueKeys, getValueKeys, toProperties, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.portal.pcm.configuration.Configuration
getBlock, getBlockKeys, getBlockKeys, getBoolean, getInteger, getLong, getOptionalBlock, getOptionalBoolean, getOptionalBoolean, getOptionalInteger, getOptionalInteger, getOptionalLong, getOptionalLong, getOptionalString, getOptionalString, getString, getValueKeys, getValueKeys, toProperties, toString
-
Constructor Details
-
PropertiesConfiguration
public PropertiesConfiguration()Default constructor for empty properties ... -
PropertiesConfiguration
Constructor to build a configuration from a simple resource bundle.- Parameters:
rb- the resource bundle (e.g. Infranet.properties file) to use
-
PropertiesConfiguration
Constructuor to build a configuration from a resource bundle, and return the entries that apply only to the given application key. The application key will be removed from the key. E.g. "app.key.one" will be stored as "key.one".- Parameters:
rb- the resource bundle (e.g. Infranet.properties file) to useappKey- the key to return (e.g. "ref", "rated_event_manager", etc.)
-