|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.townleyenterprises.common.PropertyResolver
This is a decorator class for a java.util.Properties object to provide an extra method for locating properties with a specified prefix.
Constructor Summary | |
PropertyResolver(java.util.Properties properties)
The constructor initializes the instance with the reference to the properties. |
Method Summary | |
java.lang.String |
get(java.lang.String key)
This method is just a pass-through to the java.util.Properties.getProperties method. |
java.lang.String |
get(java.lang.String prefix,
java.lang.String key)
This method provides a way to get compound properties, joined by the '.' character. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public PropertyResolver(java.util.Properties properties)
properties
- the Properties to decorateMethod Detail |
public java.lang.String get(java.lang.String key)
key
- the property key
public java.lang.String get(java.lang.String prefix, java.lang.String key)
'.'
character.
prefix
- the prefix for this propertykey
- the base property key
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |