org.apache.tapestry.util
Class PropertyHolderPropertySource
java.lang.Object
org.apache.tapestry.util.PropertyHolderPropertySource
- All Implemented Interfaces:
- IPropertySource
- public class PropertyHolderPropertySource
- extends Object
- implements IPropertySource
Implements the IPropertySource
interface
for instances that implement IPropertyHolder
.
- Since:
- 2.3
- Version:
- $Id: PropertyHolderPropertySource.java,v 1.4 2004/02/19 17:37:47 hlship Exp $
- Author:
- Howard Lewis Ship
Method Summary |
String |
getPropertyValue(String propertyName)
Returns the value for a given property, or null if the
source does not provide a value for the named property. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PropertyHolderPropertySource
public PropertyHolderPropertySource(IPropertyHolder holder)
getPropertyValue
public String getPropertyValue(String propertyName)
- Description copied from interface:
IPropertySource
- Returns the value for a given property, or null if the
source does not provide a value for the named property.
Implementations of IPropertySource may use delegation
to resolve the value (that is, if one property source returns null,
it may forward the request to another source).
- Specified by:
getPropertyValue
in interface IPropertySource