org.apache.tapestry.util
Class DelegatingPropertySource
java.lang.Object
org.apache.tapestry.util.DelegatingPropertySource
- All Implemented Interfaces:
- IPropertySource
- Direct Known Subclasses:
- LocalizedPropertySource
public class DelegatingPropertySource
- extends Object
- implements IPropertySource
An implementation of IPropertySource
that delegates to a list of other implementations. This makes
it possible to create a search path for property values.
- Since:
- 2.3
- Version:
- $Id: DelegatingPropertySource.java 243791 2004-02-19 17:38:13Z hlship $
- Author:
- Howard Lewis Ship
Method Summary |
void |
addSource(IPropertySource source)
Adds another source to the list of delegate property sources. |
String |
getPropertyValue(String propertyName)
Re-invokes the method on each delegate property source,
in order, return the first non-null value found. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DelegatingPropertySource
public DelegatingPropertySource()
DelegatingPropertySource
public DelegatingPropertySource(IPropertySource delegate)
addSource
public void addSource(IPropertySource source)
- Adds another source to the list of delegate property sources.
This is typically only done during initialization
of this DelegatingPropertySource.
getPropertyValue
public String getPropertyValue(String propertyName)
- Re-invokes the method on each delegate property source,
in order, return the first non-null value found.
- Specified by:
getPropertyValue
in interface IPropertySource