|
|||||||||||
| 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 ProviderInitExceptionpublic void flush()
flush in interface Providerpublic void destroy()
destroy in interface Provider
public java.lang.Object get(java.lang.String query)
throws ResourceException
get in interface ProviderResourceException
public java.lang.Object load(java.lang.Object query,
CacheElement ce)
throws ResourceException
ResourceLoader
load in interface ResourceLoaderResourceExceptionpublic java.lang.String toString()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||