Class ResourceBundleCache


  • public class ResourceBundleCache
    extends Object
    The ResourceBundleCache caches resource bundles per OSGi bundle.
    • Constructor Detail

      • ResourceBundleCache

        public ResourceBundleCache​(org.osgi.framework.Bundle bundle)
        Creates a new object
        Parameters:
        bundle - the bundle which resources should be loaded.
    • Method Detail

      • getResourceBundle

        public ResourceBundle getResourceBundle​(Locale locale)
        Gets the resource bundle for the specified locale.
        Parameters:
        locale - the requested locale
        Returns:
        the resource bundle for the requested locale