public class ComponentMessagesSourceImpl extends Object implements ComponentMessagesSource, UpdateListener
| Constructor and Description |
|---|
ComponentMessagesSourceImpl(boolean productionMode,
List<Resource> appCatalogResources,
PropertiesFileParser parser,
ComponentResourceLocator resourceLocator,
ClasspathURLConverter classpathURLConverter,
ComponentRequestSelectorAnalyzer componentRequestSelectorAnalyzer,
ThreadLocale threadLocale) |
| Modifier and Type | Method and Description |
|---|---|
void |
checkForUpdates()
Invoked to force the receiver to check for updates to whatever underlying resources it makes use of.
|
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)
Used to obtain a
Messages instance for a particular component, within a particular locale. |
void |
setupReload(ReloadHelper reloadHelper) |
public ComponentMessagesSourceImpl(@Symbol(value="tapestry.production-mode") boolean productionMode, List<Resource> appCatalogResources, PropertiesFileParser parser, ComponentResourceLocator resourceLocator, ClasspathURLConverter classpathURLConverter, ComponentRequestSelectorAnalyzer componentRequestSelectorAnalyzer, ThreadLocale threadLocale)
@PostInjection public void setupReload(ReloadHelper reloadHelper)
public void checkForUpdates()
UpdateListenercheckForUpdates in interface UpdateListenerpublic Messages getMessages(ComponentModel componentModel, Locale locale)
ComponentMessagesSourceMessages 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).getMessages in interface ComponentMessagesSourcepublic Messages getMessages(ComponentModel componentModel, ComponentResourceSelector selector)
ComponentMessagesSourceMessages 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).getMessages in interface ComponentMessagesSourceselector - determined correct version of messages to obtainpublic Messages getApplicationCatalog(Locale locale)
ComponentMessagesSourcegetApplicationCatalog in interface ComponentMessagesSourcepublic InvalidationEventHub getInvalidationEventHub()
ComponentMessagesSourcegetInvalidationEventHub in interface ComponentMessagesSource5.6.4 - Copyright © 2003-2021 The Apache Software Foundation.