|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.tapestry.services.impl.ComponentMessagesSourceImpl
public class ComponentMessagesSourceImpl
Service used to access localized properties for a component.
| Field Summary | |
|---|---|
static 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. |
static String |
NAMESPACE_PROPERTIES_NAME
The alternate file name of a namespace properties file to lookup. |
| Constructor Summary | |
|---|---|
ComponentMessagesSourceImpl()
|
|
| Method Summary | |
|---|---|
protected 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)
Gets the associated localized component messages. |
void |
resetEventDidOccur()
Clears the cache of read properties files. |
void |
setClasspathResourceFactory(ClasspathResourceFactory factory)
|
void |
setComponentPropertySource(ComponentPropertySource componentPropertySource)
|
void |
setComponentResourceResolver(IComponentResourceResolver resourceResolver)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String MESSAGES_ENCODING_PROPERTY_NAME
public static final String NAMESPACE_PROPERTIES_NAME
| Constructor Detail |
|---|
public ComponentMessagesSourceImpl()
| Method Detail |
|---|
protected Properties getLocalizedProperties(IComponent component)
Properties containing the properly
localized messages for the component, in the Locale identified by
the component's containing page.
component - The component to get properties for.
Properties instance representing the localized properties for
the specified component.public void resetEventDidOccur()
resetEventDidOccur in interface ResetEventListenerpublic org.apache.hivemind.Messages getMessages(IComponent component)
ComponentMessagesSource
getMessages in interface ComponentMessagesSourcecomponent - The component to get properties for.
Messages for the specified component.public void setComponentPropertySource(ComponentPropertySource componentPropertySource)
public void setClasspathResourceFactory(ClasspathResourceFactory factory)
public void setComponentResourceResolver(IComponentResourceResolver resourceResolver)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||