Class RecursiveProperties
- All Implemented Interfaces:
Serializable, Cloneable, Map<Object,Object>
Overrides
Properties in order to check if the expected value
contains another property key like "${...}". It that case, the key
will be replaced by its value if possible.
Example :
myFirstName=Arnaud
myName=Thimel
org.nuiton.topia.userInfo.fullName=${fullName}
fullName=${myFirstName} ${myName}
namePhrase=My name is ${myName}.
instruction=Put your text like this : ${myText}
Dans ce cas,
- getProperty("org.nuiton.topia.userInfo.fullName") renverra "Arnaud Thimel"
- getProperty("namePhrase") renverra "My name is Thimel."
- getProperty("instruction") renverra "Put your text like this : ${myText}"
- Author:
- Arnaud Thimel - thimel@codelutin.com
- See Also:
-
Field Summary
Fields inherited from class Properties
defaults -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class Properties
clear, clone, compute, computeIfAbsent, computeIfPresent, contains, containsKey, containsValue, elements, entrySet, equals, forEach, get, getOrDefault, getProperty, hashCode, isEmpty, keys, keySet, list, list, load, load, loadFromXML, merge, propertyNames, put, putAll, putIfAbsent, rehash, remove, remove, replace, replace, replaceAll, save, setProperty, size, store, store, storeToXML, storeToXML, storeToXML, stringPropertyNames, toString, values
-
Constructor Details
-
RecursiveProperties
public RecursiveProperties() -
RecursiveProperties
-
-
Method Details
-
getProperty
- Overrides:
getPropertyin classProperties
-