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