org.apache.tapestry.util
Class ResourceBundlePropertySource

java.lang.Object
  extended by 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

Constructor Summary
ResourceBundlePropertySource(ResourceBundle bundle)
           
 
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
 

Constructor Detail

ResourceBundlePropertySource

public ResourceBundlePropertySource(ResourceBundle bundle)
Method Detail

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