ResourceBundleLocator implementation that provides access
to multiple source ResourceBundles by merging them into one
aggregated bundle.
| Modifier and Type | Class and Description |
|---|---|
| public static class | AggregateResourceBundleLocator.AggregateBundle
Deprecated
This class should not have been part of the public API and will be removed at a later stage.
A ResourceBundle whose content is aggregated from multiple source bundles.
|
| Modifier and Type | Field and Description |
|---|---|
| private final List |
| Access | Constructor and Description |
|---|---|
| public | AggregateResourceBundleLocator(List<String>
A list with source bundle names. The returned bundle will
contain all entries 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. bundleNames)Creates a locator that delivers a resource bundle merged from the given list of source bundles. |
| public | AggregateResourceBundleLocator(List<String>
A list with source bundle names. The returned 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. bundleNames, ResourceBundleLocator A delegate resource bundle locator. The bundle returned by
this locator will be added to the aggregate bundle after all
source bundles. delegate)Creates a locator that delivers a resource bundle merged from the given list of source bundles. |
| public | AggregateResourceBundleLocator(List<String>
A list with source bundle names. The returned 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. bundleNames, ResourceBundleLocator A delegate resource bundle locator. The bundle returned by
this locator will be added to the aggregate bundle after all
source bundles. delegate, ClassLoader The classloader to use for loading the bundle. classLoader)Creates a locator that delivers a resource bundle merged from the given list of source bundles. |
| public | AggregateResourceBundleLocator(List<String>
A list with source bundle names. The returned bundle will
contain all entries 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. bundleNames, boolean if resource bundles should be initialized when initializing the locator preloadResourceBundles, Set<Locale> The set of locales to initialize at bootstrap localesToInitialize)Creates a locator that delivers a resource bundle merged from the given list of source bundles. |
| public | AggregateResourceBundleLocator(List<String>
A list with source bundle names. The returned 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. bundleNames, boolean if resource bundles should be initialized when initializing the locator preloadResourceBundles, Set<Locale> The set of locales to initialize at bootstrap localesToInitialize, ResourceBundleLocator A delegate resource bundle locator. The bundle returned by
this locator will be added to the aggregate bundle after all
source bundles. delegate)Creates a locator that delivers a resource bundle merged from the given list of source bundles. |
| public | AggregateResourceBundleLocator(List<String>
A list with source bundle names. The returned 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. bundleNames, boolean if resource bundles should be initialized when initializing the locator preloadResourceBundles, Set<Locale> The set of locales to initialize at bootstrap localesToInitialize, ResourceBundleLocator A delegate resource bundle locator. The bundle returned by
this locator will be added to the aggregate bundle after all
source bundles. delegate, ClassLoader The classloader to use for loading the bundle. classLoader)Creates a locator that delivers a resource bundle merged from the given list of source bundles. |
| Modifier and Type | Method and Description |
|---|---|
| public ResourceBundle | getResourceBundle(Locale
A locale, for which a resource bundle shall be retrieved. Must
not be null. locale)Overrides org. Implements org. |
| resourceBundleLocators | back to summary |
|---|---|
| private final List<PlatformResourceBundleLocator> resourceBundleLocators | |
| AggregateResourceBundleLocator | back to summary |
|---|---|
| public AggregateResourceBundleLocator(List<String> bundleNames) Creates a locator that delivers a resource bundle merged from the given list of source bundles. | |
| AggregateResourceBundleLocator | back to summary |
|---|---|
| public AggregateResourceBundleLocator(List<String> bundleNames, ResourceBundleLocator delegate) Creates a locator that delivers a resource bundle merged from the given list of source bundles.
| |
| AggregateResourceBundleLocator | back to summary |
|---|---|
| public AggregateResourceBundleLocator(List<String> bundleNames, ResourceBundleLocator delegate, ClassLoader classLoader) Creates a locator that delivers a resource bundle merged from the given list of source bundles.
| |
| AggregateResourceBundleLocator | back to summary |
|---|---|
| public AggregateResourceBundleLocator(List<String> bundleNames, boolean preloadResourceBundles, Set<Locale> localesToInitialize) Creates a locator that delivers a resource bundle merged from the given list of source bundles.
| |
| AggregateResourceBundleLocator | back to summary |
|---|---|
| public AggregateResourceBundleLocator(List<String> bundleNames, boolean preloadResourceBundles, Set<Locale> localesToInitialize, ResourceBundleLocator delegate) Creates a locator that delivers a resource bundle merged from the given list of source bundles.
| |
| AggregateResourceBundleLocator | back to summary |
|---|---|
| public AggregateResourceBundleLocator(List<String> bundleNames, boolean preloadResourceBundles, Set<Locale> localesToInitialize, ResourceBundleLocator delegate, ClassLoader classLoader) Creates a locator that delivers a resource bundle merged from the given list of source bundles.
| |
| getResourceBundle | back to summary |
|---|---|
| public ResourceBundle getResourceBundle(Locale locale) Overrides org. Implements org. Doc from org. Returns a resource bundle for the given locale.
| |
Deprecated
This class should not have been part of the public API and will be removed at a later stage.
ResourceBundle whose content is aggregated from multiple source bundles.
| Access | Constructor and Description |
|---|---|
| public |
| AggregateBundle | back to summary |
|---|---|
| public AggregateBundle(List<ResourceBundle> bundles) | |