- java.lang.Object
-
- java.util.ResourceBundle
-
- com.sun.xml.fastinfoset.AbstractResourceBundle
-
- com.sun.xml.fastinfoset.CommonResourceBundle
-
public class CommonResourceBundle extends AbstractResourceBundle
Resource bundle implementation for localized messages.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringBASE_NAMEprivate java.util.ResourceBundlebundleprivate static CommonResourceBundleinstanceprivate static java.util.Localelocale-
Fields inherited from class com.sun.xml.fastinfoset.AbstractResourceBundle
LOCALE
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedCommonResourceBundle()protectedCommonResourceBundle(java.util.Locale locale)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.ResourceBundlegetBundle()Subclasses of this class must implement this method so that the correct resource bundle is passed to methods in this classjava.util.ResourceBundlegetBundle(java.util.Locale locale)static CommonResourceBundlegetInstance()static CommonResourceBundlegetInstance(java.util.Locale locale)-
Methods inherited from class com.sun.xml.fastinfoset.AbstractResourceBundle
getKeys, getString, handleGetObject, parseLocale
-
-
-
-
Field Detail
-
BASE_NAME
public static final java.lang.String BASE_NAME
- See Also:
- Constant Field Values
-
instance
private static volatile CommonResourceBundle instance
-
locale
private static java.util.Locale locale
-
bundle
private java.util.ResourceBundle bundle
-
-
Method Detail
-
getInstance
public static CommonResourceBundle getInstance()
-
getInstance
public static CommonResourceBundle getInstance(java.util.Locale locale)
-
getBundle
public java.util.ResourceBundle getBundle()
Description copied from class:AbstractResourceBundleSubclasses of this class must implement this method so that the correct resource bundle is passed to methods in this class- Specified by:
getBundlein classAbstractResourceBundle- Returns:
- A java.util.ResourceBundle from the subclass. Methods in this class will use this reference.
-
getBundle
public java.util.ResourceBundle getBundle(java.util.Locale locale)
-
-