Class NullResourceDataCache
java.lang.Object
org.pentaho.reporting.libraries.resourceloader.cache.NullResourceDataCache
- All Implemented Interfaces:
ResourceDataCache
Disables caching. It simply returns null on every request and ignores the put requests. You certainly want to use one
of the other cache providers in real world applications.
- Author:
- Thomas Morgner
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()Remove all cached entries.get(ResourceKey key) Retrieves the given data from the cache.put(ResourceManager caller, ResourceData data) Stores the given data on the cache.voidremove(ResourceData data) voidshutdown()
-
Constructor Details
-
NullResourceDataCache
public NullResourceDataCache()
-
-
Method Details
-
put
Description copied from interface:ResourceDataCacheStores 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.- Specified by:
putin interfaceResourceDataCachedata- the data to be stored in the cache- Returns:
- the resource data object, possibly wrapped by a cache-specific implementation.
- Throws:
ResourceLoadingException
-
get
Description copied from interface:ResourceDataCacheRetrieves the given data from the cache.- Specified by:
getin interfaceResourceDataCache- Parameters:
key- the resource key for the data.
-
remove
- Specified by:
removein interfaceResourceDataCache
-
clear
public void clear()Description copied from interface:ResourceDataCacheRemove all cached entries. This should be called after the cache has become invalid or after it has been removed from a resource manager.- Specified by:
clearin interfaceResourceDataCache
-
shutdown
public void shutdown()- Specified by:
shutdownin interfaceResourceDataCache
-