public class

ResourceCache

extends FileCacheBase
java.lang.Object
   ↳ com.microstrategy.utils.cache.CacheBase
     ↳ com.microstrategy.utils.cache.CustomizationsAwareCache
       ↳ com.microstrategy.utils.cache.FileCacheBase
         ↳ com.microstrategy.web.app.utils.cache.ResourceCache

Class Overview

This is a cache for Resource objects. A Resource is basically a wrapper of a file from which you can retrieve the file contents as a string or as a DOM Document.

Summary

[Expand]
Inherited Constants
From class com.microstrategy.utils.cache.CacheBase
[Expand]
Inherited Fields
From class com.microstrategy.utils.cache.CacheBase
Protected Methods
Object doLoad(CacheHint hint)
This abstract method is called by the load method to perform the actual loading.
Object getKey(CacheHint hint)
Returns the key of the cache element based on the hint.
[Expand]
Inherited Methods
From class com.microstrategy.utils.cache.FileCacheBase
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

Protected Methods

protected Object doLoad (CacheHint hint)

This abstract method is called by the load method to perform the actual loading. In this method, subclasses needs to load the file and parse it, and return the object they actually want cached.

protected Object getKey (CacheHint hint)

Returns the key of the cache element based on the hint. In this scenario, the hint itself is the key.

Parameters
hint the hint object.
Returns
  • the key