|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||
@Target(value=METHOD) @Retention(value=RUNTIME) @Inherited @Documented public @interface TriggersRemove
Annotation for methods who's calls trigger removal of data from a cache
| Required Element Summary | |
|---|---|
java.lang.String[] |
cacheName
The name(s) of the cache to use. |
| Optional Element Summary | |
|---|---|
KeyGenerator |
keyGenerator
Used the specify and configure the CacheKeyGenerator to use for all caches. |
java.lang.String |
keyGeneratorName
The Spring Bean name of the CacheKeyGenerator to use for all caches. |
boolean |
removeAll
If a call should remove all elements from the cache. |
ResolverFactory |
resolverFactory
Used the specify and configure the CacheResolverFactory to use. |
java.lang.String |
resolverFactoryName
The Spring Bean name of the CacheResolverFactory to use to resolve the correct cache at runtime. |
java.lang.String |
triggersRemoveInteceptorName
The Spring Bean name of the TriggersRemoveInterceptor to use when intercepting invocations. |
When |
when
Used to specify 'when' to run the ehcache remove call: before or after method invocation. |
| Element Detail |
|---|
public abstract java.lang.String[] cacheName
CacheKeyGenerator is used for all caches.
public abstract boolean removeAll
public abstract java.lang.String keyGeneratorName
CacheKeyGenerator to use for all caches.
Ignored if keyGenerator() is specified.
If this and keyGenerator() are not specified the default generator will be used.
If removeAll() is true no CacheKeyGenerator is used.
public abstract KeyGenerator keyGenerator
CacheKeyGenerator to use for all caches.
If this and keyGeneratorName() are not specified the default generator will be used.
If removeAll() is true no CacheKeyGenerator is used.
public abstract When when
When.AFTER_METHOD_INVOCATION and your method invocation throws
an exception, the ehcache remove call WILL NOT execute.
Default value is When.BEFORE_METHOD_INVOCATION.
public abstract java.lang.String triggersRemoveInteceptorName
TriggersRemoveInterceptor to use when intercepting invocations.
public abstract java.lang.String resolverFactoryName
CacheResolverFactory to use to resolve the correct cache at runtime.
Ignored if resolverFactory() is specified.
If this and resolverFactory() are not specified the specified cacheName() will be used.
public abstract ResolverFactory resolverFactory
CacheResolverFactory to use.
If this and resolverFactoryName() are not specified the specified cacheName() will be used.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||