public class SimpleBundleProvider extends java.lang.Object implements ResourceBundleProvider
ResourceBundleProvider
based on
ResourceBundle.getBundle(String)
.
Always resolve to the same family of resource bundles, based on the
specified basename
.
Constructor and Description |
---|
SimpleBundleProvider(java.lang.String baseName) |
Modifier and Type | Method and Description |
---|---|
java.util.ResourceBundle |
getResourceBundle(java.lang.String msgId,
java.util.Locale locale)
Returns a
ResourceBundle for the specified message ID
and locale. |
public java.util.ResourceBundle getResourceBundle(java.lang.String msgId, java.util.Locale locale)
ResourceBundleProvider
ResourceBundle
for the specified message ID
and locale.getResourceBundle
in interface ResourceBundleProvider
msgId
- identifier of the message to be resolvedlocale
- target localeResourceBundle
which contains data for the message