public class ComponentMessagesSourceImpl extends java.lang.Object implements ComponentMessagesSource, ResetEventListener
Modifier and Type | Field and Description |
---|---|
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
|
Constructor and Description |
---|
ComponentMessagesSourceImpl() |
Modifier and Type | Method and Description |
---|---|
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. |
org.apache.hivemind.Messages |
getMessages(IComponent component) |
void |
resetEventDidOccur()
Clears the cache of read properties files.
|
void |
setComponentPropertySource(ComponentPropertySource componentPropertySource) |
public static final java.lang.String MESSAGES_ENCODING_PROPERTY_NAME
public ComponentMessagesSourceImpl()
protected java.util.Properties getLocalizedProperties(IComponent component)
Properties
containing the properly localized messages for the
component, in the Locale
identified by the component's containing page.public void resetEventDidOccur()
resetEventDidOccur
in interface ResetEventListener
public org.apache.hivemind.Messages getMessages(IComponent component)
getMessages
in interface ComponentMessagesSource
public void setComponentPropertySource(ComponentPropertySource componentPropertySource)