Package com.networknt.schema.i18n
Interface MessageSource
- All Known Implementing Classes:
ResourceBundleMessageSource
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Resolves locale specific messages.
-
Method Details
-
getMessage
String getMessage(String key, Supplier<String> defaultMessageSupplier, Locale locale, Object... args) Gets the message.- Parameters:
key- to look up the messagedefaultMessageSupplier- the default messagelocale- the locale to useargs- the message arguments- Returns:
- the message
-
getMessage
Gets the message.- Parameters:
key- to look up the messagedefaultMessage- the default messagelocale- the locale to useargs- the message arguments- Returns:
- the message
-
getMessage
Gets the message.- Parameters:
key- to look up the messagelocale- the locale to useargs- the message arguments- Returns:
- the message
-