public class DefaultResourceBundleFactory extends java.lang.Object implements ResourceBundleFactory
Locale.getDefault() as
Locale.DEFAULT_RESOURCE_BUNDLE_CONFIG_KEY| Constructor and Description |
|---|
DefaultResourceBundleFactory()
Creates a new DefaultResourceBundleFactory using the system's default locale as
factory locale.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.ResourceBundle |
getResourceBundle(java.util.Locale locale,
java.lang.String key)
Creates a resource bundle named by the given key and using the factory's defined
locale.
|
public DefaultResourceBundleFactory()
public java.util.ResourceBundle getResourceBundle(java.util.Locale locale,
java.lang.String key)
getResourceBundle in interface ResourceBundleFactorykey - the name of the resourcebundle, never null.java.lang.NullPointerException - if key is
nulljava.util.MissingResourceException - if no resource bundle for the specified base name can be
foundResourceBundle.getBundle(String,Locale)