org.apache.tapestry.services.impl
Class ComponentMessages
java.lang.Object
org.apache.hivemind.impl.AbstractMessages
org.apache.tapestry.services.impl.ComponentMessages
- All Implemented Interfaces:
- org.apache.hivemind.Messages
public class ComponentMessages
- extends org.apache.hivemind.impl.AbstractMessages
Implementation of Messages
. This is basically a wrapper around an
instance of Properties
. This ensures that the properties are, in fact, read-only (which
ensures that they don't have to be synchronized).
- Since:
- 2.0.4
- Author:
- Howard Lewis Ship
Constructor Summary |
ComponentMessages(java.util.Locale locale,
java.util.Properties properties)
|
Method Summary |
protected java.lang.String |
findMessage(java.lang.String key)
|
protected java.util.Locale |
getLocale()
|
Methods inherited from class org.apache.hivemind.impl.AbstractMessages |
format, format, format, format, getMessage |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ComponentMessages
public ComponentMessages(java.util.Locale locale,
java.util.Properties properties)
findMessage
protected java.lang.String findMessage(java.lang.String key)
- Specified by:
findMessage
in class org.apache.hivemind.impl.AbstractMessages
getLocale
protected java.util.Locale getLocale()
- Specified by:
getLocale
in class org.apache.hivemind.impl.AbstractMessages