Class CustomResourceBundleCache

  • All Implemented Interfaces:
    Cache, java.util.Observer

    public class CustomResourceBundleCache
    extends ResourceBundleCache
    Since:
    MicroStrategy Web 9.0.0
    • Method Detail

      • getBundle

        public static java.util.ResourceBundle getBundle​(java.lang.String baseName,
                                                         java.util.Locale locale)
        Gets a resource bundle using the specified base name and locale.
        Parameters:
        baseName - the base name of the resource bundle, a fully qualified class name
        locale - the locale for which a resource bundle is desired
        Returns:
        a resource bundle for the given base name and locale.
      • load

        protected java.lang.Object load​(CacheHint hint)
                                 throws CacheException
        Description copied from class: CacheBase
        Overridable. Creates a new cached object instance and populates it with data from the persistent storage. In case the object not found in the persistent storage the implementation can return either null or a dummy object.
        Overrides:
        load in class ResourceBundleCache
        Parameters:
        hint - the hint object.
        Returns:
        the object or null.
        Throws:
        CacheException - if somethig gos wrong.