org.apache.tapestry5.internal.services
Interface MessagesSource

All Superinterfaces:
InvalidationEventHub, UpdateListener
All Known Implementing Classes:
MessagesSourceImpl

public interface MessagesSource
extends InvalidationEventHub, UpdateListener


Method Summary
 Messages getMessages(MessagesBundle bundle, ComponentResourceSelector selector)
          Used to obtain a Messages instance for a particular component, within a particular locale.
 
Methods inherited from interface org.apache.tapestry5.services.InvalidationEventHub
addInvalidationListener
 
Methods inherited from interface org.apache.tapestry5.services.UpdateListener
checkForUpdates
 

Method Detail

getMessages

Messages getMessages(MessagesBundle bundle,
                     ComponentResourceSelector selector)
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:
bundle - defines the set of properties files to read, as well as a series of parent bundles to extend and override
selector - defines the locale and other axes used to locate the necessary resources
Returns:
the message catalog for the bundle, for the indicated selector


Copyright © 2003-2012 The Apache Software Foundation.