@UsesOrderedConfiguration(value=Resource.class) public interface ComponentMessagesSource
Resource
s
contributed to the service. In general, component libraries will contribute a Resource before the "AppCatalog"
resource (representing
the application message catalog, WEB-INF/app.properties) so that the application can override messages of the
component library.Modifier and Type | Method and Description |
---|---|
Messages |
getApplicationCatalog(Locale locale)
Gets the Messages derived from the application's message catalog.
|
InvalidationEventHub |
getInvalidationEventHub()
Returns the event hub that allows listeners to be notified when any underlying message catalog file is changed.
|
Messages |
getMessages(ComponentModel componentModel,
ComponentResourceSelector selector)
Used to obtain a
Messages instance for a particular component, using a particular selector. |
Messages |
getMessages(ComponentModel componentModel,
Locale locale)
Deprecated.
Deprecated in 5.3; use
getMessages(ComponentModel, ComponentResourceSelector) instead. |
Messages getMessages(ComponentModel componentModel, Locale locale)
getMessages(ComponentModel, ComponentResourceSelector)
instead.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).componentModel
- locale
- Messages getMessages(ComponentModel componentModel, ComponentResourceSelector selector)
Messages
instance for a particular component, using a particular selector. 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).componentModel
- selector
- determined correct version of messages to obtainMessages getApplicationCatalog(Locale locale)
@NotLazy InvalidationEventHub getInvalidationEventHub()
${project.version} - Copyright © 2003-2015 The Apache Software Foundation.