public interface MessageResolver extends Serializable
| Modifier and Type | Method and Description |
|---|---|
Optional<String> |
getMessage(Locale locale,
String code,
Object... arguments)
Get the localized message which corresponds to given message localization
code, if available, using
the given locale. |
String |
getMessage(Locale locale,
String code,
String defaultMessage,
Object... arguments)
Get the localized message which corresponds to given message localization
code, using the given
locale. |
Optional<String> getMessage(Locale locale, String code, Object... arguments)
code, if available, using
the given locale.locale - The Locale for which to obtain the message localization (not null)code - The message localization code (not null)arguments - Optional message localization argumentsString getMessage(Locale locale, String code, String defaultMessage, Object... arguments)
code, using the given
locale.locale - The Locale for which to obtain the message localization (not null)code - The message localization code (not null)defaultMessage - The default message to use if the message localization is not available (not null)arguments - Optional message localization argumentsdefaultMessage if the message localization is not availableCopyright © 2019 The Holon Platform. All rights reserved.