Class ChainedResourceBundle
java.lang.Object
java.util.ResourceBundle
edu.internet2.middleware.grouper.ui.util.ChainedResourceBundle
- All Implemented Interfaces:
Serializable
Given a list of bundles, looks for values in each individually until it finds
one
- Version:
- $Id: ChainedResourceBundle.java,v 1.7 2008-11-04 07:17:59 mchyzer Exp $
- See Also:
-
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
ConstructorDescriptionChainedResourceBundle
(ResourceBundle bundle, String name) Constructor - ensures atleast one bundle! -
Method Summary
Modifier and TypeMethodDescriptionvoid
addBundle
(ResourceBundle bundle) Extend the chainvoid
addToCache
(String key, String value) add to cache some extra paramsgetKeys()
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 Details
-
ChainedResourceBundle
Constructor - ensures atleast one bundle!- Parameters:
bundle
- Resource Bundlename
- of bundle which can be referred to elsewhere
-
-
Method Details
-
addToCache
add to cache some extra params- Parameters:
key
-value
-
-
addBundle
Extend the chain- Parameters:
bundle
- to add
-
handleGetObject
- Specified by:
handleGetObject
in classResourceBundle
-
getKeys
- Specified by:
getKeys
in classResourceBundle
-