org.hibernate.validator.resourceloading
Class AggregateResourceBundleLocator.AggregateBundle
java.lang.Object
java.util.ResourceBundle
org.hibernate.validator.resourceloading.AggregateResourceBundleLocator.AggregateBundle
- Enclosing class:
- AggregateResourceBundleLocator
public static class AggregateResourceBundleLocator.AggregateBundle
- extends ResourceBundle
A ResourceBundle which's content is aggregated from multiple source bundles.
This class is package-private for the sake of testability.
- Author:
- Gunnar Morling
| Methods inherited from class java.util.ResourceBundle |
clearCache, clearCache, containsKey, getBundle, getBundle, getBundle, getBundle, getBundle, getBundle, getLocale, getObject, getString, getStringArray, handleKeySet, keySet, setParent |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AggregateResourceBundleLocator.AggregateBundle
public AggregateResourceBundleLocator.AggregateBundle(List<ResourceBundle> bundles)
- Creates a new AggregateBundle.
- Parameters:
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.
getKeys
public Enumeration<String> getKeys()
- Specified by:
getKeys in class ResourceBundle
handleGetObject
protected Object handleGetObject(String key)
- Specified by:
handleGetObject in class ResourceBundle
Copyright © 2011 Oracle Corporation. All Rights Reserved.