Class AggregateResourceBundleLocator

    • Constructor Detail

      • AggregateResourceBundleLocator

        public AggregateResourceBundleLocator​(List<String> bundleNames)
        Creates a locator that delivers a resource bundle merged from the given list of source bundles.
        Parameters:
        bundleNames - 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.
      • AggregateResourceBundleLocator

        public AggregateResourceBundleLocator​(List<String> bundleNames,
                                              ResourceBundleLocator delegate)
        Creates a locator that delivers a resource bundle merged from the given list of source bundles.
        Parameters:
        bundleNames - 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.
        delegate - A delegate resource bundle locator. The bundle returned by this locator will be added to the aggregate bundle after all source bundles.
      • AggregateResourceBundleLocator

        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.
        Parameters:
        bundleNames - 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.
        delegate - A delegate resource bundle locator. The bundle returned by this locator will be added to the aggregate bundle after all source bundles.
        classLoader - The classloader to use for loading the bundle.
        Since:
        5.2
      • AggregateResourceBundleLocator

        @Incubating
        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.
        Parameters:
        bundleNames - 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.
        preloadResourceBundles - if resource bundles should be initialized when initializing the locator
        localesToInitialize - The set of locales to initialize at bootstrap
        Since:
        6.1.1
      • AggregateResourceBundleLocator

        @Incubating
        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.
        Parameters:
        bundleNames - 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.
        preloadResourceBundles - if resource bundles should be initialized when initializing the locator
        localesToInitialize - The set of locales to initialize at bootstrap
        delegate - A delegate resource bundle locator. The bundle returned by this locator will be added to the aggregate bundle after all source bundles.
        Since:
        6.1.1
      • AggregateResourceBundleLocator

        @Incubating
        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.
        Parameters:
        bundleNames - 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.
        preloadResourceBundles - if resource bundles should be initialized when initializing the locator
        localesToInitialize - The set of locales to initialize at bootstrap
        delegate - A delegate resource bundle locator. The bundle returned by this locator will be added to the aggregate bundle after all source bundles.
        classLoader - The classloader to use for loading the bundle.
        Since:
        6.1.1