@Interceptor public class CacheRemoveEntryInterceptor extends AbstractCacheRemoveEntryInterceptor
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.
trace| Constructor and Description |
|---|
CacheRemoveEntryInterceptor(DefaultCacheResolver cacheResolver,
CacheKeyInvocationContextFactory contextFactory) |
| Modifier and Type | Method and Description |
|---|---|
Object |
cacheRemoveEntry(javax.interceptor.InvocationContext invocationContext) |
protected Log |
getLog() |
@Inject public CacheRemoveEntryInterceptor(DefaultCacheResolver cacheResolver, CacheKeyInvocationContextFactory contextFactory)
public Object cacheRemoveEntry(javax.interceptor.InvocationContext invocationContext) throws Exception
cacheRemoveEntry in class AbstractCacheRemoveEntryInterceptorExceptionprotected Log getLog()
getLog in class AbstractCacheRemoveEntryInterceptorCopyright © 2025 JBoss, a division of Red Hat. All rights reserved.