|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.oddjob.arooa.standard.StandardPropertyManager
public class StandardPropertyManager
Standard implementation of a PropertyManager
.
Constructor Summary | |
---|---|
StandardPropertyManager()
Default Constructor. |
|
StandardPropertyManager(Properties properties,
String source)
Constructor with some properties. |
|
StandardPropertyManager(PropertyManager parent)
Constructor the defers first to a parent. |
|
StandardPropertyManager(PropertyManager parent,
Properties properties,
String source)
Constructor that defers first to parent, then to given properties. |
Method Summary | |
---|---|
void |
addPropertyLookup(PropertyLookup propertyLookup)
Add a lookup. |
void |
addPropertyOverride(PropertyLookup propertyLookup)
Add a property overrides. |
String |
lookup(String propertyName)
Return the value of a property, or null if it doesn't exist. |
Set<String> |
propertyNames()
Return all property names in this property lookup. |
void |
removePropertyLookup(PropertyLookup propertyLookup)
Remove a lookup. |
PropertySource |
sourceFor(String propertyName)
Return a source for the property. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StandardPropertyManager()
public StandardPropertyManager(Properties properties, String source)
properties
- source
- The name of the source of the properties.public StandardPropertyManager(PropertyManager parent)
parent
- public StandardPropertyManager(PropertyManager parent, Properties properties, String source)
parent
- properties
- source
- The name of the source of the properties.Method Detail |
---|
public void addPropertyLookup(PropertyLookup propertyLookup)
PropertyManager
addPropertyLookup
in interface PropertyManager
public void addPropertyOverride(PropertyLookup propertyLookup)
PropertyManager
addPropertyOverride
in interface PropertyManager
public void removePropertyLookup(PropertyLookup propertyLookup)
PropertyManager
removePropertyLookup
in interface PropertyManager
public String lookup(String propertyName)
PropertyLookup
lookup
in interface PropertyLookup
propertyName
- The name of the property.
public Set<String> propertyNames()
PropertyLookup
propertyNames
in interface PropertyLookup
public PropertySource sourceFor(String propertyName)
PropertyLookup
sourceFor
in interface PropertyLookup
propertyName
- The property name.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |