public class CacheInterceptor extends CacheAspectSupport implements MethodInterceptor, Serializable
Cache
).
Derives from the CacheAspectSupport
class which
contains the integration with Spring's underlying caching API.
CacheInterceptor simply calls the relevant superclass methods
in the correct order.
CacheInterceptors are thread-safe.
CacheAspectSupport.CacheOperationContext, CacheAspectSupport.CacheOperationMetadata
logger
Constructor and Description |
---|
CacheInterceptor() |
Modifier and Type | Method and Description |
---|---|
Object |
invoke(MethodInvocation invocation) |
afterPropertiesSet, afterSingletonsInstantiated, clearMetadataCache, execute, getBean, getCacheOperationMetadata, getCacheOperationSource, getCacheResolver, getCaches, getKeyGenerator, getOperationContext, invokeOperation, methodIdentification, setApplicationContext, setCacheManager, setCacheOperationSources, setCacheResolver, setKeyGenerator
doClear, doEvict, doGet, doPut, getErrorHandler, setErrorHandler
public Object invoke(MethodInvocation invocation) throws Throwable
invoke
in interface MethodInterceptor
Throwable