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,v 1.3 2004/01/19 21:32:17 hlship Exp $
- Author:
- Howard Lewis Ship
Method Summary |
String |
getPropertyValue(String propertyName)
Gets the value from the bundle by invoking
ResourceBundle.getString(java.lang.String) . |
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