org.apache.tapestry.util
Class ResourceBundlePropertySource

java.lang.Object
  extended byorg.apache.tapestry.util.ResourceBundlePropertySource
All Implemented Interfaces:
IPropertySource

public class ResourceBundlePropertySource
extends java.lang.Object
implements IPropertySource

A property source that is based on a ResourceBundle.

Since:
3.0
Author:
Howard Lewis Ship

Constructor Summary
ResourceBundlePropertySource(java.util.ResourceBundle bundle)
           
 
Method Summary
 java.lang.String getPropertyValue(java.lang.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
 

Constructor Detail

ResourceBundlePropertySource

public ResourceBundlePropertySource(java.util.ResourceBundle bundle)
Method Detail

getPropertyValue

public java.lang.String getPropertyValue(java.lang.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