org.apache.tapestry.services.impl
Class ComponentMessagesSourceImpl
java.lang.Object
org.apache.tapestry.services.impl.ComponentMessagesSourceImpl
- All Implemented Interfaces:
- ComponentMessagesSource, java.util.EventListener, ResetEventListener
- public class ComponentMessagesSourceImpl
- extends java.lang.Object
- implements ComponentMessagesSource, ResetEventListener
Service used to access localized properties for a component.
- Since:
- 2.0.4
- Author:
- Howard Lewis Ship
Field Summary |
static java.lang.String |
MESSAGES_ENCODING_PROPERTY_NAME
The name of the component/application/etc property that will be used to determine the
encoding to use when loading the messages |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MESSAGES_ENCODING_PROPERTY_NAME
public static final java.lang.String MESSAGES_ENCODING_PROPERTY_NAME
- The name of the component/application/etc property that will be used to determine the
encoding to use when loading the messages
- See Also:
- Constant Field Values
ComponentMessagesSourceImpl
public ComponentMessagesSourceImpl()
getLocalizedProperties
protected java.util.Properties getLocalizedProperties(IComponent component)
- Returns an instance of
Properties
containing the properly localized messages for the
component, in the Locale
identified by the component's containing page.
resetEventDidOccur
public void resetEventDidOccur()
- Clears the cache of read properties files.
- Specified by:
resetEventDidOccur
in interface ResetEventListener
getMessages
public org.apache.hivemind.Messages getMessages(IComponent component)
- Specified by:
getMessages
in interface ComponentMessagesSource
setComponentPropertySource
public void setComponentPropertySource(ComponentPropertySource componentPropertySource)