Package at.gv.egovernment.moaspss.util
Class ResourceBundleChain
java.lang.Object
at.gv.egovernment.moaspss.util.ResourceBundleChain
A class to chain
ResourceBundles.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddResourceBundle(ResourceBundle resourceBundle) Add aResourceBundleto the chain.Return the value of the resource.
-
Constructor Details
-
ResourceBundleChain
public ResourceBundleChain()
-
-
Method Details
-
addResourceBundle
Add aResourceBundleto the chain.- Parameters:
resourceBundle- TheResourceBundleto add.
-
getString
Return the value of the resource.- Parameters:
key- The key to access theStringresource.- Returns:
- The resource value. All the registered
ResourceBundles are searched in the order in which they have previously been added to thisResourceBundleChain. - Throws:
MissingResourceException- The resource coult not be found in any of the bundles.
-