Class EnvironmentSpecificProperties

All Implemented Interfaces:
Serializable, Cloneable, Map<Object,Object>

public class EnvironmentSpecificProperties extends TypedProperties
This extension to Properties reads in a properties file and looks for any properties whose prefix matches any combination of supplied environment tokens. Any matches it finds, it removes the prefix and keeps a reference to the new property.
See Also:
  • Field Details

    • propertiesForEnvironment

      protected Set<String> propertiesForEnvironment
    • systemPropertyName

      protected String systemPropertyName
    • original

      protected Properties original
  • Constructor Details

    • EnvironmentSpecificProperties

      public EnvironmentSpecificProperties(URL fileUrl, String systemPropertyName, String... propertiesForEnv)
    • EnvironmentSpecificProperties

      public EnvironmentSpecificProperties(URL[] fileUrls, String systemPropertyName, String... propertiesForEnv)
  • Method Details