|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||
@Target(value=METHOD) @Retention(value=RUNTIME) public @interface CacheRemoveEntry
When a method annotated with CacheRemoveEntry is invoked a CacheKey will be generated and
Cache.remove(Object) will be invoked on the specified cache.
| Optional Element Summary | |
|---|---|
boolean |
afterInvocation
(Optional) When Cache.remove(Object) should be called. |
Class<? extends CacheKeyGenerator> |
cacheKeyGenerator
(Optional) The CacheKeyGenerator to use to generate the cache key used to call Cache.remove(Object)
Defaults to DefaultCacheKeyGenerator |
String |
cacheName
(Optional) name of the cache. |
Class<? extends CacheResolver> |
cacheResovler
(Optional) The CacheResolver to use to find the Cache the intercepter will interact with. |
public abstract String cacheName
public abstract boolean afterInvocation
Cache.remove(Object) should be called. If true it is called after the annotated method
invocation completes successfully. If false it is called before the annotated method is invoked.
Defaults to true.
public abstract Class<? extends CacheResolver> cacheResovler
CacheResolver to use to find the Cache the intercepter will interact with.
Defaults to resolving the cache by name from the default CacheManager
public abstract Class<? extends CacheKeyGenerator> cacheKeyGenerator
CacheKeyGenerator to use to generate the cache key used to call Cache.remove(Object)
Defaults to DefaultCacheKeyGenerator
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||