org.apache.tapestry.engine
Class DefaultComponentMessagesSource

java.lang.Object
  extended by org.apache.tapestry.engine.DefaultComponentMessagesSource
All Implemented Interfaces:
IComponentMessagesSource

public class DefaultComponentMessagesSource
extends Object
implements IComponentMessagesSource

Global object (stored in the servlet context) that accesses localized properties for a component.

Since:
2.0.4
Version:
$Id: DefaultComponentMessagesSource.java 243791 2004-02-19 17:38:13Z hlship $
Author:
Howard Lewis Ship

Constructor Summary
DefaultComponentMessagesSource()
           
 
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.
 IMessages getMessages(IComponent component)
           
 void reset()
          Clears the cache of read properties files.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultComponentMessagesSource

public DefaultComponentMessagesSource()
Method Detail

getLocalizedProperties

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.


reset

public void reset()
Clears the cache of read properties files.

Specified by:
reset in interface IComponentMessagesSource

getMessages

public IMessages getMessages(IComponent component)
Specified by:
getMessages in interface IComponentMessagesSource