Class ConfigurationProperties

  • Direct Known Subclasses:
    ConfigurationPropertiesImpl

    public abstract class ConfigurationProperties
    extends Object
    Provides an mechanism for modules to read the configuration properties that are attached to the servlet context. The customary behavior is for ConfigurationPropertiesSetup to create a ConfigurationPropertiesImpl, which will obtain the properties from the build.properties file and the runtime.properties file.
    • Constructor Detail

      • ConfigurationProperties

        public ConfigurationProperties()
    • Method Detail

      • setBean

        protected static void setBean​(javax.servlet.ServletContext context,
                                      ConfigurationProperties bean)
        Protected access, so the Stub class can call it for unit tests. Otherwise, this should only be called by ConfigurationPropertiesSetup.
      • getProperty

        public abstract String getProperty​(String key)
        Get the value of the property, or null if the property has not been assigned a value.
      • getProperty

        public abstract String getProperty​(String key,
                                           String defaultValue)
        Get the value of the property, or use the default value if the property has not been assigned a value.
      • getPropertyMap

        public abstract Map<String,​String> getPropertyMap()
        Get a copy of the map of the configuration properties and their settings. Because this is a copy, it cannot be used to modify the settings.