Package org.apache.tapestry5.internal.services

## Interface MessagesSource

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

      public interface MessagesSource
      extends InvalidationEventHub, UpdateListener

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `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.commons.services.InvalidationEventHub

      `addInvalidationCallback, addInvalidationListener, clearOnInvalidation`

    - ### Methods inherited from interface org.apache.tapestry5.ioc.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