Package org.pentaho.platform.api.locale
Interface IResourceBundleProvider
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
-
Method Summary
Modifier and TypeMethodDescriptiondefault ResourceBundleReturns the resource bundle for the current locale.getResourceBundle(Locale locale) Returns the resource bundle for the given locale.
-
Method Details
-
getResourceBundle
Returns the resource bundle for the given locale. If the given locale isnull, the current locale will be used.- Parameters:
locale- the locale to use- Returns:
- the resource bundle for the given locale, or the current locale if
null - Throws:
MissingResourceException- if no resource bundle for the given locale can be found.
-
getResourceBundle
Returns the resource bundle for the current locale.- Returns:
- the resource bundle for the current locale
- Throws:
MissingResourceException- if no resource bundle for the current locale can be found.
-