org.apache.tapestry.util
Class ResourceBundlePropertySource
java.lang.Object
org.apache.tapestry.util.ResourceBundlePropertySource
- All Implemented Interfaces:
- IPropertySource
public class ResourceBundlePropertySource
- extends Object
- implements IPropertySource
A property source that is based on a ResourceBundle
.
- Since:
- 3.0
- Version:
- $Id: ResourceBundlePropertySource.java 243791 2004-02-19 17:38:13Z hlship $
- Author:
- Howard Lewis Ship
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ResourceBundlePropertySource
public ResourceBundlePropertySource(ResourceBundle bundle)
getPropertyValue
public String getPropertyValue(String propertyName)
- Gets the value from the bundle by invoking
ResourceBundle.getString(java.lang.String)
. If
the bundle does not contain the key (that is, it it
throws MissingResourceException
), then
null is returned.
- Specified by:
getPropertyValue
in interface IPropertySource