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