Package org.infinispan.jcache.annotation
Class CacheRemoveAllInterceptor
- java.lang.Object
-
- org.infinispan.jcache.annotation.AbstractCacheRemoveAllInterceptor
-
- org.infinispan.jcache.annotation.CacheRemoveAllInterceptor
-
- All Implemented Interfaces:
Serializable
@Interceptor public class CacheRemoveAllInterceptor extends AbstractCacheRemoveAllInterceptor
CacheRemoveAllinterceptor implementation. This interceptor uses the following algorithm describes in JSR-107.The interceptor that intercepts method annotated with
@CacheRemoveAllmust do the following, remove all entries associated with the cache. The removeAll 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 removeAll will not happen.- Author:
- Kevin Pollet <kevin.pollet@serli.com> (C) 2011 SERLI
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CacheRemoveAllInterceptor(DefaultCacheResolver cacheResolver, CacheKeyInvocationContextFactory contextFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectcacheRemoveAll(javax.interceptor.InvocationContext invocationContext)protected org.infinispan.jcache.logging.LoggetLog()
-
-
-
Constructor Detail
-
CacheRemoveAllInterceptor
@Inject public CacheRemoveAllInterceptor(DefaultCacheResolver cacheResolver, CacheKeyInvocationContextFactory contextFactory)
-
-
Method Detail
-
cacheRemoveAll
public Object cacheRemoveAll(javax.interceptor.InvocationContext invocationContext) throws Exception
- Overrides:
cacheRemoveAllin classAbstractCacheRemoveAllInterceptor- Throws:
Exception
-
getLog
protected org.infinispan.jcache.logging.Log getLog()
- Specified by:
getLogin classAbstractCacheRemoveAllInterceptor
-
-