|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.webmacro.resource.SMapCacheManager
| Constructor Summary | |
SMapCacheManager()
|
|
| Method Summary | |
void |
destroy()
Close down the provider. |
void |
flush()
Clear the cache. |
java.lang.Object |
get(java.lang.Object query)
Get the object associated with the specific query, trying to look it up in a cache. |
java.lang.Object |
get(java.lang.Object query,
ResourceLoader helper)
Get the object associated with the specific query, first trying to look it up in a 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)
Removes a specific entry from the cache. |
void |
put(java.lang.Object query,
java.lang.Object resource)
Put an object in the cache |
boolean |
supportsReload()
Does this cache manager support reloading of resources if the underlying resource has changed? |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public SMapCacheManager()
| Method Detail |
public void init(Broker b,
Settings config,
java.lang.String resourceType)
throws InitException
CacheManager
init in interface CacheManagerInitExceptionpublic void flush()
flush in interface CacheManagerpublic void destroy()
destroy in interface CacheManagerpublic boolean supportsReload()
CacheManager
supportsReload in interface CacheManager
public java.lang.Object get(java.lang.Object query,
ResourceLoader helper)
throws ResourceException
get in interface CacheManagerResourceExceptionpublic java.lang.Object get(java.lang.Object query)
get in interface CacheManager
public void put(java.lang.Object query,
java.lang.Object resource)
put in interface CacheManagerpublic void invalidate(java.lang.Object query)
invalidate in interface CacheManagerpublic java.lang.String toString()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||