|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.pentaho.reporting.libraries.resourceloader.cache.NullResourceDataCache
public class NullResourceDataCache
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.
Constructor Summary | |
---|---|
NullResourceDataCache()
|
Method Summary | |
---|---|
void |
clear()
Remove all cached entries. |
ResourceDataCacheEntry |
get(ResourceKey key)
Retrieves the given data from the cache. |
ResourceData |
put(ResourceManager caller,
ResourceData data)
Stores the given data on the cache. |
void |
remove(ResourceData data)
|
void |
shutdown()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NullResourceDataCache()
Method Detail |
---|
public ResourceData put(ResourceManager caller, ResourceData data) throws ResourceLoadingException
ResourceDataCache
put
in interface ResourceDataCache
data
- the data to be stored in the cache
ResourceLoadingException
public ResourceDataCacheEntry get(ResourceKey key)
ResourceDataCache
get
in interface ResourceDataCache
key
- the resource key for the data.public void remove(ResourceData data)
remove
in interface ResourceDataCache
public void clear()
ResourceDataCache
clear
in interface ResourceDataCache
public void shutdown()
shutdown
in interface ResourceDataCache
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |