public class

ResourceBundleCache

extends CustomizationsAwareCache
java.lang.Object
   ↳ com.microstrategy.utils.cache.CacheBase
     ↳ com.microstrategy.utils.cache.CustomizationsAwareCache
       ↳ com.microstrategy.utils.cache.ResourceBundleCache

Summary

[Expand]
Inherited Constants
From class com.microstrategy.utils.cache.CacheBase
[Expand]
Inherited Fields
From class com.microstrategy.utils.cache.CacheBase
Public Methods
static ResourceBundle getBundle(String baseName, Locale locale)
Gets a resource bundle using the specified base name and locale.
static ResourceBundle getBundle(String baseName)
Gets a resource bundle using the specified base name and default locale.
static ResourceBundleCache getInstance()
Protected Methods
Object getKey(CacheHint hint)
Overridable.
Object load(CacheHint hint)
Overridable.
[Expand]
Inherited Methods
From class com.microstrategy.utils.cache.CustomizationsAwareCache
From class com.microstrategy.utils.cache.CacheBase
From class java.lang.Object
From interface com.microstrategy.utils.cache.Cache
From interface java.util.Observer

Public Methods

public static ResourceBundle getBundle (String baseName, 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.

public static ResourceBundle getBundle (String baseName)

Gets a resource bundle using the specified base name and default locale.

Parameters
baseName the base name of the resource bundle, a fully qualified class name
Returns
  • a resource bundle for the given base name.

public static ResourceBundleCache getInstance ()

Protected Methods

protected Object getKey (CacheHint hint)

Overridable. Extracts from the hint object the key that shall be used to identify the cached object.

Parameters
hint the hint object.
Returns
  • the key

protected Object load (CacheHint hint)

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.

Parameters
hint the hint object.
Returns
  • the object or null.