|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.webmacro.resource.StaticIdentityCacheManager
| Constructor Summary | |
StaticIdentityCacheManager()
|
|
| Method Summary | |
void |
destroy()
Close down the provider. |
void |
flush()
Clear the cache. |
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)
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)
This method throws an exception because this kind of a cache does not support individual element invalidation. |
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? |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public StaticIdentityCacheManager()
| 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 CacheManagerResourceException
public void put(java.lang.Object query,
java.lang.Object resource)
CacheManager
put in interface CacheManagerpublic java.lang.Object get(java.lang.Object query)
CacheManager
get 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 | ||||||||||