public interface LocalizedMessageProvider extends Feature
LocalizedMessageProvider
is capable to build localized messages based on string formats in the application's resource bundles.Modifier and Type | Field and Description |
---|---|
static LocalizedMessageProvider |
INSTANCE
Gives access to the active
DefaultLocalizedMessageProvider |
Modifier and Type | Method and Description |
---|---|
String |
getMessage(String code,
Object[] args,
Locale locale)
Returns the localized message for the given code, arguments and locale if existing,
null otherwise. |
getFeatureName, isActiveFeature
static final LocalizedMessageProvider INSTANCE
DefaultLocalizedMessageProvider
String getMessage(String code, Object[] args, Locale locale)
null
otherwise.
The method does not throw and returns code
in case of any errors.code
- The code which is used as key for the format string in the defined bundles.args
- The argument objects for the format stringlocale
- The locale to be used. If no locale is set the default locale is taken.null
if the code is not resolvable.Copyright © 2020. All rights reserved.