Package org.infinispan.jcache.annotation
Class AbstractCacheRemoveEntryInterceptor
java.lang.Object
org.infinispan.jcache.annotation.AbstractCacheRemoveEntryInterceptor
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
CacheRemoveEntryInterceptor,InjectedCacheRemoveEntryInterceptor
CacheRemove interceptor implementation.This interceptor uses the following algorithm describes in
JSR-107.
The interceptor that intercepts method annotated with @CacheRemoveEntry must do the following, generate a
key based on InvocationContext using the specified CacheKeyGenerator, use this key to remove the entry in the
cache. The remove occurs after the method body is executed. This can be overridden by specifying a afterInvocation
attribute value of false. If afterInvocation is true and the annotated method throws an exception the remove will not
happen.
- Author:
- Kevin Pollet <kevin.pollet@serli.com> (C) 2011 SERLI, Galder ZamarreƱo
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionAbstractCacheRemoveEntryInterceptor(javax.cache.annotation.CacheResolver defaultCacheResolver, CacheKeyInvocationContextFactory contextFactory) -
Method Summary
Modifier and TypeMethodDescriptioncacheRemoveEntry(javax.interceptor.InvocationContext invocationContext) protected abstract org.infinispan.jcache.logging.LoggetLog()
-
Constructor Details
-
AbstractCacheRemoveEntryInterceptor
public AbstractCacheRemoveEntryInterceptor(javax.cache.annotation.CacheResolver defaultCacheResolver, CacheKeyInvocationContextFactory contextFactory)
-
-
Method Details