org.apache.tapestry.services.impl
Class ComponentMessagesSourceImpl

java.lang.Object
  extended by org.apache.tapestry.services.impl.ComponentMessagesSourceImpl
All Implemented Interfaces:
java.util.EventListener, ResetEventListener, ComponentMessagesSource

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
 
Constructor Summary
ComponentMessagesSourceImpl()
           
 
Method Summary
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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

ComponentMessagesSourceImpl

public ComponentMessagesSourceImpl()
Method Detail

getLocalizedProperties

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.


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)