public class StaticMessageLookup extends Object implements MessageLookup
MessageLookup that retrieves messages from a resource bundle in the classpath.| Constructor and Description |
|---|
StaticMessageLookup() |
| Modifier and Type | Method and Description |
|---|---|
String |
getMessage(String messageKey)
Get message from registered resource bundle.
|
String |
getMessage(String messageKey,
Locale locale)
Get a localised message string
|
String |
getMessage(String messageKey,
Locale locale,
Object... params)
Get a localised message string, parameterized using standard MessageFormatter.
|
String |
getMessage(String messageKey,
Object... params)
Get a localised message string, parameterized using standard MessageFormatter.
|
@NotAuditable public String getMessage(String messageKey)
MessageLookupgetMessage in interface MessageLookupmessageKey - message key@NotAuditable public String getMessage(String messageKey, Locale locale)
MessageLookupgetMessage in interface MessageLookupmessageKey - the message keylocale - override the current locale@NotAuditable public String getMessage(String messageKey, Object... params)
MessageLookupgetMessage in interface MessageLookupmessageKey - message keyparams - format parameters@NotAuditable public String getMessage(String messageKey, Locale locale, Object... params)
MessageLookupgetMessage in interface MessageLookupmessageKey - the message keylocale - override current localeparams - the localised message stringCopyright © 2005–2019 Alfresco Software. All rights reserved.