Package com.sap.cds.services.messages
Interface LocalizedMessageProvider
- All Superinterfaces:
CdsProvider<LocalizedMessageProvider>
A
LocalizedMessageProvider is capable to build localized messages based on string formats
in the application's resource bundles.-
Method Summary
Methods inherited from interface com.sap.cds.services.runtime.CdsProvider
setPrevious
-
Method Details
-
get
Returns the localized message for the given code, arguments and locale if existing,nullotherwise. The method does not throw and returnscodein case of any errors.- Parameters:
messageOrKey- The formatting message, based on SLF4J'sMessageFormatter, or a key to a message format in the resource bundles.args- The argument objects for the format string.locale- The locale to be used. If no locale is set the default locale is taken.- Returns:
- The localized message or
nullif the code is not resolvable.
-