Package de.xima.fc.resource
Class AggregateResourceBundle
- java.lang.Object
-
- java.util.ResourceBundle
-
- de.xima.fc.resource.AggregateResourceBundle
-
public final class AggregateResourceBundle extends ResourceBundle
AResourceBundlethat combines multiple different resource bundles.- Since:
- 8.0.0
- Author:
- XIMA MEDIA GmbH
-
-
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 AggregateResourceBundle(Iterable<? extends ResourceBundle> bundles)Creates a new resource bundle with all values from the given bundles.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Enumeration<String>getKeys()protected ObjecthandleGetObject(String key)protected Set<String>handleKeySet()-
Methods inherited from class java.util.ResourceBundle
clearCache, clearCache, containsKey, getBaseBundleName, getBundle, getBundle, getBundle, getBundle, getBundle, getBundle, getBundle, getBundle, getLocale, getObject, getString, getStringArray, keySet, setParent
-
-
-
-
Constructor Detail
-
AggregateResourceBundle
public AggregateResourceBundle(Iterable<? extends ResourceBundle> bundles)
Creates a new resource bundle with all values from the given bundles. When more than one resource bundle provides a value for a given key, the value from the last bundle that provides a value is used.- Parameters:
bundles- Bundles to combine.
-
-
Method Detail
-
handleGetObject
protected Object handleGetObject(String key)
- Specified by:
handleGetObjectin classResourceBundle
-
handleKeySet
protected Set<String> handleKeySet()
- Overrides:
handleKeySetin classResourceBundle
-
getKeys
public Enumeration<String> getKeys()
- Specified by:
getKeysin classResourceBundle
-
-