|
||||||||||
| 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 |
|---|
equals, 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 ResourceDataCachedata - the data to be stored in the cache
ResourceLoadingExceptionpublic ResourceDataCacheEntry get(ResourceKey key)
ResourceDataCache
get in interface ResourceDataCachekey - the resource key for the data.public void remove(ResourceData data)
remove in interface ResourceDataCachepublic void clear()
ResourceDataCache
clear in interface ResourceDataCachepublic void shutdown()
shutdown in interface ResourceDataCache
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||