org.oddjob.arooa.runtime
Interface PropertyLookup

All Known Subinterfaces:
PropertyManager
All Known Implementing Classes:
EnvVarPropertyLookup, StandardPropertyLookup, StandardPropertyManager

public interface PropertyLookup

Something for looking up properties.

Author:
rob

Method Summary
 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.
 PropertySource sourceFor(String propertyName)
          Return a source for the property.
 

Method Detail

lookup

String lookup(String propertyName)
Return the value of a property, or null if it doesn't exist.

Parameters:
propertyName - The name of the property.
Returns:
The value or null.

sourceFor

PropertySource sourceFor(String propertyName)
Return a source for the property.

Parameters:
propertyName - The property name.
Returns:
The source, or null if the property isn't known.

propertyNames

Set<String> propertyNames()
Return all property names in this property lookup.

Returns:
The property names. Never null.