org.apache.tapestry.services.impl
Class LocalizedPropertySource
java.lang.Object
org.apache.tapestry.services.impl.LocalizedPropertySource
public class LocalizedPropertySource
- extends Object
Wraps around a IPropertySource
to query a series of localized
keys.
This is much simpler than the old LocalizedPropertySource
, and
allows the locale to be specified on a thread-safe, per-invocation basis.
- Since:
- 4.0
- Author:
- Howard M. Lewis Ship
Method Summary |
String |
getPropertyValue(String propertyName,
Locale locale)
Get the property from the source, trying different variations of propertyName (adding
suffixes). |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LocalizedPropertySource
public LocalizedPropertySource(IPropertySource source)
getPropertyValue
public String getPropertyValue(String propertyName,
Locale locale)
- Get the property from the source, trying different variations of propertyName (adding
suffixes).
- Parameters:
propertyName
- the base property name to search with.locale
- the Locale used to generate suffixes (may be null).
Copyright © 2006-2008 Apache Software Foundation. All Rights Reserved.