Class ResourceBundlesCollector


  • public class ResourceBundlesCollector
    extends Object
    Class that:
    • takes a map of resource bundles (keyed by locale) or single resource bundles
    • sorts them by locale
    • combines all bundles keyed by the same locale into one CombinedResourceBundle
    • and returns a list of CombinedResourceBundles in the correct locale order (most specific locales come first. e.g. fr_FR -> fr -> <NOLOCALE>)
    • Constructor Detail

      • ResourceBundlesCollector

        public ResourceBundlesCollector()
    • Method Detail

      • addBundle

        public void addBundle​(ResourceBundle bundle)
        Adds a resource bundle that is not tied to any particular locale
        Parameters:
        bundle - resource bundle to add