@Interceptor public class CacheRemoveAllInterceptor extends AbstractCacheRemoveAllInterceptor
CacheRemoveAll
interceptor implementation. This interceptor uses the following algorithm describes in
JSR-107.
The interceptor that intercepts method annotated with @CacheRemoveAll
must 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.
Constructor and Description |
---|
CacheRemoveAllInterceptor(DefaultCacheResolver cacheResolver,
CacheKeyInvocationContextFactory contextFactory) |
@Inject public CacheRemoveAllInterceptor(DefaultCacheResolver cacheResolver, CacheKeyInvocationContextFactory contextFactory)
public Object cacheRemoveAll(InvocationContext invocationContext) throws Exception
cacheRemoveAll
in class AbstractCacheRemoveAllInterceptor
Exception
protected Log getLog()
getLog
in class AbstractCacheRemoveAllInterceptor
Copyright © 2014 JBoss, a division of Red Hat. All Rights Reserved.