|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.webmacro.resource.CachingProvider
CacheManager is an abstract base class for providers which wish to implement caching functionality. By extending CachingProvider and implementing the methods in ResourceLoader, a provider can automatically support caching using any CacheManager. CachingProvider looks in the properties file to find the desired cache manager.
Field Summary | |
protected boolean |
_cacheSupportsReload
|
Constructor Summary | |
CachingProvider()
|
Method Summary | |
void |
destroy()
Close down the provider. |
void |
flush()
Clear the cache. |
java.lang.Object |
get(java.lang.String query)
Get the object associated with the specific query, using the specified cache manager. |
void |
init(Broker b,
Settings config)
If you override this method be sure and call super.init(...) |
java.lang.Object |
load(java.lang.Object query,
CacheElement ce)
Load an object from permanent storage (or construct it) on demand. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.webmacro.Provider |
getType |
Methods inherited from interface org.webmacro.resource.ResourceLoader |
load |
Field Detail |
protected boolean _cacheSupportsReload
Constructor Detail |
public CachingProvider()
Method Detail |
public void init(Broker b, Settings config) throws InitException
init
in interface Provider
InitException
public void flush()
flush
in interface Provider
public void destroy()
destroy
in interface Provider
public java.lang.Object get(java.lang.String query) throws ResourceException
get
in interface Provider
ResourceException
public java.lang.Object load(java.lang.Object query, CacheElement ce) throws ResourceException
ResourceLoader
load
in interface ResourceLoader
ResourceException
public java.lang.String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |