public static class AggregateResourceBundleLocator.AggregateBundle extends ResourceBundle
ResourceBundle
whose content is aggregated from multiple source bundles.
This class is package-private for the sake of testability.ResourceBundle.Control
parent
Constructor and Description |
---|
AggregateResourceBundleLocator.AggregateBundle(List<ResourceBundle> bundles)
Creates a new AggregateBundle.
|
Modifier and Type | Method and Description |
---|---|
Enumeration<String> |
getKeys() |
protected Object |
handleGetObject(String key) |
clearCache, clearCache, containsKey, getBundle, getBundle, getBundle, getBundle, getBundle, getBundle, getLocale, getObject, getString, getStringArray, handleKeySet, keySet, setParent
public AggregateResourceBundleLocator.AggregateBundle(List<ResourceBundle> bundles)
bundles
- A list of source bundles, which shall be merged into one
aggregated bundle. The newly created bundle will contain
all keys from all source bundles. In case a key occurs in
multiple source bundles, the value will be taken from the
first bundle containing the key.public Enumeration<String> getKeys()
getKeys
in class ResourceBundle
protected Object handleGetObject(String key)
handleGetObject
in class ResourceBundle
Copyright © 2007-2014 Red Hat Middleware, LLC. All Rights Reserved