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` whose content is aggregated from multiple source bundles.

  This class is package-private for the sake of testability.
  Author:
    Gunnar Morling

- - ### 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 and Description
    `AggregateResourceBundleLocator.AggregateBundle(List<ResourceBundle> bundles)` Creates a new AggregateBundle.

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `Enumeration<String>` | `getKeys()`
    `protected Object` | `handleGetObject(String key)`

    - ### 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`

- - ### Constructor Detail

    - #### 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.

  - ### Method Detail

    - #### getKeys

          public Enumeration<String> getKeys()

      Specified by:
        `getKeys` in class `ResourceBundle`

    - #### handleGetObject

          protected Object handleGetObject(String key)

      Specified by:
        `handleGetObject` in class `ResourceBundle`

Copyright © 2007-2014 Red Hat, Inc. All Rights Reserved