I - The intercepted method invocationpublic abstract class AbstractCacheRemoveAllInterceptor<I> extends AbstractCacheInterceptor<I>
CacheRemoveAll| Constructor and Description |
|---|
AbstractCacheRemoveAllInterceptor() |
| Modifier and Type | Method and Description |
|---|---|
Object |
cacheRemoveAll(CacheContextSource<I> cacheContextSource,
I invocation)
Handles the
Cache.removeAll() as specified for the CacheRemoveAll annotation |
protected <T extends StaticCacheInvocationContext<?>> |
getCacheInvocationContext(InternalCacheInvocationContext<? extends Annotation> cacheInvocationContext,
InterceptorType interceptorType)
Get, check the
InterceptorType and cast the CacheMethodDetailsImpl for the invocation. |
protected void |
removeAll(InternalCacheInvocationContext<? extends Annotation> cacheInvocationContext,
StaticCacheInvocationContext<javax.cache.annotation.CacheRemoveAll> methodDetails)
Resolve the Cache and call removeAll
|
proceedpublic final Object cacheRemoveAll(CacheContextSource<I> cacheContextSource, I invocation) throws Throwable
Cache.removeAll() as specified for the CacheRemoveAll annotationcacheContextSource - The intercepted invocationinvocation - The intercepted invocationAbstractCacheInterceptor.proceed(Object)Throwable - if AbstractCacheInterceptor.proceed(Object) threwprotected void removeAll(InternalCacheInvocationContext<? extends Annotation> cacheInvocationContext, StaticCacheInvocationContext<javax.cache.annotation.CacheRemoveAll> methodDetails)
cacheInvocationContext - The invocation contextmethodDetails - The details about the cached methodprotected <T extends StaticCacheInvocationContext<?>> T getCacheInvocationContext(InternalCacheInvocationContext<? extends Annotation> cacheInvocationContext, InterceptorType interceptorType)
InterceptorType and cast the CacheMethodDetailsImpl for the invocation.cacheInvocationContext - The invocation context to get the CacheMethodDetailsImpl from.interceptorType - The current interceptor type, used for validation.CacheMethodDetailsImpl object.Copyright © 2019. All rights reserved.