org.apache.tapestry5.internal.services
Interface ComponentMessagesSource

All Known Implementing Classes:
ComponentMessagesSourceImpl

public interface ComponentMessagesSource

Used to connect a Tapestry component to its message catalog.


Method Summary
 InvalidationEventHub getInvalidatonEventHub()
          Returns the event hub that allows listeners to be notified when any underlying message catalog file is changed.
 Messages getMessages(ComponentModel componentModel, Locale locale)
          Used to obtain a Messages instance for a particular component, within a particular locale.
 

Method Detail

getMessages

Messages getMessages(ComponentModel componentModel,
                     Locale locale)
Used to obtain a Messages instance for a particular component, within a particular locale. If the component extends from another component, then its localized properties will merge with its parent's properties (with the subclass overriding the super class on any conflicts).

Parameters:
componentModel -
locale -
Returns:
the message catalog for the component, in the indicated locale

getInvalidatonEventHub

InvalidationEventHub getInvalidatonEventHub()
Returns the event hub that allows listeners to be notified when any underlying message catalog file is changed.

Since:
5.1.0.0


Copyright © 2006-2009 Apache Software Foundation. All Rights Reserved.