net.sf.jnati.config
Class ResolvingProperties

java.lang.Object
  extended by java.util.Dictionary<K,V>
      extended by java.util.Hashtable<Object,Object>
          extended by java.util.Properties
              extended by net.sf.jnati.config.ResolvingProperties
All Implemented Interfaces:
Serializable, Cloneable, Map<Object,Object>

public class ResolvingProperties
extends Properties

Values ${name} are substituted with either parameters specified on construction, or other properties. Parameters can also be included in property names, but other properties cannot.

Author:
Sam Adams
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.Properties
defaults
 
Constructor Summary
ResolvingProperties()
           
ResolvingProperties(Map<String,String> params)
           
ResolvingProperties(ResolvingProperties defaults)
           
ResolvingProperties(ResolvingProperties defaults, Map<String,String> params)
           
 
Method Summary
 Object get(Object key)
           
 String getProperty(String key)
           
 Object put(Object key, Object value)
           
 
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, hashCode, isEmpty, keys, keySet, putAll, rehash, remove, size, toString, values
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ResolvingProperties

public ResolvingProperties()

ResolvingProperties

public ResolvingProperties(Map<String,String> params)

ResolvingProperties

public ResolvingProperties(ResolvingProperties defaults)

ResolvingProperties

public ResolvingProperties(ResolvingProperties defaults,
                           Map<String,String> params)
Method Detail

get

public Object get(Object key)
Specified by:
get in interface Map<Object,Object>
Overrides:
get in class Hashtable<Object,Object>

put

public Object put(Object key,
                  Object value)
Specified by:
put in interface Map<Object,Object>
Overrides:
put in class Hashtable<Object,Object>

getProperty

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


Copyright © 2007-2011 Sam Adams. All Rights Reserved.