Class PropertiesConfiguration

java.lang.Object
com.portal.pcm.configuration.BaseConfiguration
com.portal.pcm.configuration.PropertiesConfiguration
All Implemented Interfaces:
Configuration

public class PropertiesConfiguration extends BaseConfiguration implements Configuration
Configuration class which provides a hierarchical view of the configuration values that are loaded from a resource bundle.
  • Constructor Details

    • PropertiesConfiguration

      public PropertiesConfiguration()
      Default constructor for empty properties ...
    • PropertiesConfiguration

      public PropertiesConfiguration(ResourceBundle rb)
      Constructor to build a configuration from a simple resource bundle.
      Parameters:
      rb - the resource bundle (e.g. Infranet.properties file) to use
    • PropertiesConfiguration

      public 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. 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 use
      appKey - the key to return (e.g. "ref", "rated_event_manager", etc.)