Package org.alfresco.repo.i18n
Class StaticMessageLookup
java.lang.Object
org.alfresco.repo.i18n.StaticMessageLookup
- All Implemented Interfaces:
MessageLookup
A
MessageLookup that retrieves messages from a resource bundle in the classpath.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetMessage(String messageKey) Get message from registered resource bundle.getMessage(String messageKey, Object... params) Get a localised message string, parameterized using standard MessageFormatter.getMessage(String messageKey, Locale locale) Get a localised message stringgetMessage(String messageKey, Locale locale, Object... params) Get a localised message string, parameterized using standard MessageFormatter.
-
Constructor Details
-
StaticMessageLookup
public StaticMessageLookup()
-
-
Method Details
-
getMessage
Description copied from interface:MessageLookupGet message from registered resource bundle.- Specified by:
getMessagein interfaceMessageLookup- Parameters:
messageKey- message key- Returns:
- localised message string, null if not found
-
getMessage
Description copied from interface:MessageLookupGet a localised message string- Specified by:
getMessagein interfaceMessageLookup- Parameters:
messageKey- the message keylocale- override the current locale- Returns:
- the localised message string, null if not found
-
getMessage
Description copied from interface:MessageLookupGet a localised message string, parameterized using standard MessageFormatter.- Specified by:
getMessagein interfaceMessageLookup- Parameters:
messageKey- message keyparams- format parameters- Returns:
- the localised string, null if not found
-
getMessage
Description copied from interface:MessageLookupGet a localised message string, parameterized using standard MessageFormatter.- Specified by:
getMessagein interfaceMessageLookup- Parameters:
messageKey- the message keylocale- override current localeparams- the localised message string- Returns:
- the localised string, null if not found
-