org.nuiton.util
Class RecursiveProperties
java.lang.Object
java.util.Dictionary<K,V>
java.util.Hashtable<Object,Object>
java.util.Properties
org.nuiton.util.RecursiveProperties
- All Implemented Interfaces:
- Serializable, Cloneable, Map<Object,Object>
public class RecursiveProperties
- extends Properties
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
- See Also:
- Serialized Form
| Methods inherited from class java.util.Properties |
getProperty, list, list, load, load, loadFromXML, propertyNames, save, setProperty, store, store, storeToXML, storeToXML, stringPropertyNames |
| Methods inherited from class java.util.Hashtable |
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, put, putAll, rehash, remove, size, toString, values |
RecursiveProperties
public RecursiveProperties()
RecursiveProperties
public RecursiveProperties(Properties defaults)
getProperty
public String getProperty(String key)
- Overrides:
getProperty in class Properties
Copyright © 2004-2011 CodeLutin. All Rights Reserved.