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
Propertiescontaining the properly localized messages for the
component, in the Localeidentified 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)
Propertiescontaining the properly localized messages for the
component, in the Localeidentified by the component's containing page.public void resetEventDidOccur()
resetEventDidOccur in interface ResetEventListenerpublic org.apache.hivemind.Messages getMessages(IComponent component)
getMessages in interface ComponentMessagesSourcepublic void setComponentPropertySource(ComponentPropertySource componentPropertySource)