org.pentaho.reporting.libraries.resourceloader.modules.cache.ehcache

Class EHResourceDataCache

public class EHResourceDataCache extends Object implements ResourceDataCache

Creation-Date: 13.04.2006, 16:30:34

Author: Thomas Morgner

Constructor Summary
EHResourceDataCache(Cache dataCache)
Method Summary
voidclear()
Remove all cached entries.
ResourceDataCacheEntryget(ResourceKey key)
Retrieves the given data from the cache.
ResourceDataput(ResourceManager caller, ResourceData data)
Stores the given data on the cache.
voidremove(ResourceData data)
voidshutdown()

Constructor Detail

EHResourceDataCache

public EHResourceDataCache(Cache dataCache)

Method Detail

clear

public void clear()
Remove all cached entries. This should be called after the cache has become invalid or after it has been removed from a resource manager.

get

public ResourceDataCacheEntry get(ResourceKey key)
Retrieves the given data from the cache.

Parameters: key the resource key for the data.

put

public ResourceData put(ResourceManager caller, ResourceData data)
Stores the given data on the cache. The data is registered by its primary key. The cache has to store the current version of the data.

Parameters: data the data to be stored in the cache

Returns: the resource data object, possibly wrapped by a cache-specific implementation.

remove

public void remove(ResourceData data)

shutdown

public void shutdown()