Class MergedBundle
- java.lang.Object
-
- java.util.ResourceBundle
-
- com.sun.jdo.spi.persistence.utility.MergedBundle
-
public class MergedBundle extends ResourceBundle
Special resource bundle which delegates to two others. Ideally could just set the parent on the first, but this is protected, so it might not work. It's still unclear whether that approach would work in this subclass because it may break the localization fall through mechanism if used. Note: This code is copied from NbBundle in the openide sources with the following modifications: - reformatting - making variables final - renaming variables and some params - removing locale code - creating the merged set of keys using jdk classes and not nb utils- Version:
- %I%
- Author:
- Rochelle Raccah
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.util.ResourceBundle
ResourceBundle.Control
-
-
Field Summary
-
Fields inherited from class java.util.ResourceBundle
parent
-
-
Constructor Summary
Constructors Constructor Description MergedBundle(ResourceBundle mainBundle, ResourceBundle parentBundle)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Enumeration
getKeys()
protected Object
handleGetObject(String key)
-
Methods inherited from class java.util.ResourceBundle
clearCache, clearCache, containsKey, getBaseBundleName, getBundle, getBundle, getBundle, getBundle, getBundle, getBundle, getBundle, getBundle, getLocale, getObject, getString, getStringArray, handleKeySet, keySet, setParent
-
-
-
-
Constructor Detail
-
MergedBundle
public MergedBundle(ResourceBundle mainBundle, ResourceBundle parentBundle)
-
-
Method Detail
-
getKeys
public Enumeration getKeys()
- Specified by:
getKeys
in classResourceBundle
-
handleGetObject
protected Object handleGetObject(String key) throws MissingResourceException
- Specified by:
handleGetObject
in classResourceBundle
- Throws:
MissingResourceException
-
-