org.nuiton.util
Class RecursiveProperties

java.lang.Object
  extended by java.util.Dictionary<K,V>
      extended by java.util.Hashtable<Object,Object>
          extended by java.util.Properties
              extended by 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,

Author:
Arnaud Thimel
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.Properties
defaults
 
Constructor Summary
RecursiveProperties()
           
RecursiveProperties(Properties defaults)
           
 
Method Summary
 String getProperty(String key)
           
 
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
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RecursiveProperties

public RecursiveProperties()

RecursiveProperties

public RecursiveProperties(Properties defaults)
Method Detail

getProperty

public String getProperty(String key)
Overrides:
getProperty in class Properties


Copyright © 2004-2011 CodeLutin. All Rights Reserved.