Package org.apache.ofbiz.base.util
Class UtilProperties.UtilResourceBundle
- java.lang.Object
-
- java.util.ResourceBundle
-
- org.apache.ofbiz.base.util.UtilProperties.UtilResourceBundle
-
- Enclosing class:
- UtilProperties
public static class UtilProperties.UtilResourceBundle extends java.util.ResourceBundle
Custom ResourceBundle class. This class extends ResourceBundle to add custom bundle caching code and support for the OFBiz custom XML properties file format.
-
-
Field Summary
Fields Modifier and Type Field Description protected int
hashCode
protected java.util.Locale
locale
protected java.util.Properties
properties
-
Constructor Summary
Constructors Modifier Constructor Description protected
UtilResourceBundle()
UtilResourceBundle(java.util.Properties properties, java.util.Locale locale, UtilProperties.UtilResourceBundle parent)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
static java.util.ResourceBundle
getBundle(java.lang.String resource, java.util.Locale locale, java.lang.ClassLoader loader)
java.util.Enumeration<java.lang.String>
getKeys()
java.util.Locale
getLocale()
protected java.lang.Object
handleGetObject(java.lang.String key)
int
hashCode()
-
-
-
Constructor Detail
-
UtilResourceBundle
protected UtilResourceBundle()
-
UtilResourceBundle
public UtilResourceBundle(java.util.Properties properties, java.util.Locale locale, UtilProperties.UtilResourceBundle parent)
-
-
Method Detail
-
getBundle
public static java.util.ResourceBundle getBundle(java.lang.String resource, java.util.Locale locale, java.lang.ClassLoader loader) throws java.util.MissingResourceException
- Throws:
java.util.MissingResourceException
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
getLocale
public java.util.Locale getLocale()
- Overrides:
getLocale
in classjava.util.ResourceBundle
-
handleGetObject
protected java.lang.Object handleGetObject(java.lang.String key)
- Specified by:
handleGetObject
in classjava.util.ResourceBundle
-
getKeys
public java.util.Enumeration<java.lang.String> getKeys()
- Specified by:
getKeys
in classjava.util.ResourceBundle
-
-