Package org.jumpmind.properties
Class EnvironmentSpecificProperties
java.lang.Object
java.util.Dictionary<K,V>
java.util.Hashtable<Object,Object>
java.util.Properties
org.jumpmind.properties.TypedProperties
org.jumpmind.properties.EnvironmentSpecificProperties
- All Implemented Interfaces:
Serializable
,Cloneable
,Map<Object,
Object>
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 Summary
FieldsFields inherited from class java.util.Properties
defaults
-
Constructor Summary
ConstructorsConstructorDescriptionEnvironmentSpecificProperties
(URL[] fileUrls, String systemPropertyName, String... propertiesForEnv) EnvironmentSpecificProperties
(URL fileUrl, String systemPropertyName, String... propertiesForEnv) -
Method Summary
Modifier and TypeMethodDescriptionprotected final void
activate()
getPropertyKeysThatBeginWith
(String prefix) void
load
(InputStream inStream) void
Methods inherited from class org.jumpmind.properties.TypedProperties
copy, get, get, getArray, getInt, getInt, getLong, getLong, instantiate, is, is, logPropertiesException, merge, put, putAll, setProperty, setProperty
Methods inherited from class java.util.Properties
clear, clone, compute, computeIfAbsent, computeIfPresent, contains, containsKey, containsValue, elements, entrySet, equals, forEach, get, getOrDefault, getProperty, getProperty, hashCode, isEmpty, keys, keySet, list, list, loadFromXML, merge, propertyNames, putAll, putIfAbsent, rehash, remove, remove, replace, replace, replaceAll, save, setProperty, size, store, store, storeToXML, storeToXML, storeToXML, stringPropertyNames, toString, values
-
Field Details
-
propertiesForEnvironment
-
systemPropertyName
-
original
-
-
Constructor Details
-
EnvironmentSpecificProperties
-
EnvironmentSpecificProperties
-
-
Method Details
-
load
- Overrides:
load
in classProperties
- Throws:
IOException
-
load
- Overrides:
load
in classProperties
- Throws:
IOException
-
activate
protected final void activate() -
getPropertyKeysThatBeginWith
-