|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The CacheManager sits between the template provider and WM. This interface specifies all the functions of the cache manager, allowing a complete separation of the fetching of resources from how they are cached. CachingProvider looks in the properties file to figure out what cache manager to load.
Method Summary | |
void |
destroy()
Same as defined in Provider |
void |
flush()
Same as defined in Provider |
java.lang.Object |
get(java.lang.Object query)
Called to get a resource from the cache. |
java.lang.Object |
get(java.lang.Object query,
ResourceLoader helper)
Called to get a resource from the cache. |
void |
init(Broker b,
Settings config,
java.lang.String resourceType)
Same as defined in Provider, except with an additional type parameter so it knows what type of resource it is caching |
void |
invalidate(java.lang.Object query)
Invalidates an entry in the cache. |
void |
put(java.lang.Object query,
java.lang.Object resource)
Called to put a resource into the cache. |
boolean |
supportsReload()
Does this cache manager support reloading of resources if the underlying resource has changed? |
Method Detail |
public void init(Broker b, Settings config, java.lang.String resourceType) throws InitException
InitException
public void flush()
public void destroy()
public java.lang.Object get(java.lang.Object query, ResourceLoader helper) throws ResourceException
ResourceException
public java.lang.Object get(java.lang.Object query)
public void put(java.lang.Object query, java.lang.Object resource)
public void invalidate(java.lang.Object query)
public boolean supportsReload()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |