abstract class AbstractCacheInterceptor<O extends AbstractJCacheOperation<A>,A extends java.lang.annotation.Annotation> extends AbstractCacheInvoker implements java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
protected Log |
logger |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractCacheInterceptor(CacheErrorHandler errorHandler) |
| Modifier and Type | Method and Description |
|---|---|
(package private) static Cache |
extractFrom(java.util.Collection<? extends Cache> caches)
Convert the collection of caches in a single expected element.
|
protected abstract java.lang.Object |
invoke(CacheOperationInvocationContext<O> context,
CacheOperationInvoker invoker) |
protected Cache |
resolveCache(CacheOperationInvocationContext<O> context)
Resolve the cache to use.
|
doClear, doEvict, doGet, doPut, getErrorHandler, setErrorHandlerprotected AbstractCacheInterceptor(CacheErrorHandler errorHandler)
protected abstract java.lang.Object invoke(CacheOperationInvocationContext<O> context, CacheOperationInvoker invoker) throws java.lang.Throwable
java.lang.Throwableprotected Cache resolveCache(CacheOperationInvocationContext<O> context)
context - the invocation context