Class CacheAspectSupport.CacheOperationContext
java.lang.Object
org.springframework.cache.interceptor.CacheAspectSupport.CacheOperationContext
- All Implemented Interfaces:
 CacheOperationInvocationContext<CacheOperation>
- Enclosing class:
 - CacheAspectSupport
 
protected class CacheAspectSupport.CacheOperationContext
extends Object
implements CacheOperationInvocationContext<CacheOperation>
A 
CacheOperationInvocationContext context for a CacheOperation.- 
Constructor Summary
ConstructorsConstructorDescriptionCacheOperationContext(CacheAspectSupport.CacheOperationMetadata metadata, Object[] args, Object target)  - 
Method Summary
Modifier and TypeMethodDescriptionprotected booleancanPutToCache(Object value) protected ObjectgenerateKey(Object result) Compute the key for the given caching operation.Object[]getArgs()Return the argument list used to invoke the method.protected Collection<String>protected Collection<? extends Cache>protected ObjectGet generated key.Return the method which was invoked.Return the cache operation.Return the target instance on which the method was invoked.protected booleanisConditionPassing(Object result)  
- 
Constructor Details
- 
CacheOperationContext
public CacheOperationContext(CacheAspectSupport.CacheOperationMetadata metadata, Object[] args, Object target)  
 - 
 - 
Method Details
- 
getOperation
Description copied from interface:CacheOperationInvocationContextReturn the cache operation.- Specified by:
 getOperationin interfaceCacheOperationInvocationContext<CacheOperation>
 - 
getTarget
Description copied from interface:CacheOperationInvocationContextReturn the target instance on which the method was invoked.- Specified by:
 getTargetin interfaceCacheOperationInvocationContext<CacheOperation>
 - 
getMethod
Description copied from interface:CacheOperationInvocationContextReturn the method which was invoked.- Specified by:
 getMethodin interfaceCacheOperationInvocationContext<CacheOperation>
 - 
getArgs
Description copied from interface:CacheOperationInvocationContextReturn the argument list used to invoke the method.- Specified by:
 getArgsin interfaceCacheOperationInvocationContext<CacheOperation>
 - 
isConditionPassing
 - 
canPutToCache
 - 
generateKey
Compute the key for the given caching operation. - 
getGeneratedKey
Get generated key.- Returns:
 - generated key
 - Since:
 - 6.1.2
 
 - 
getCaches
 - 
getCacheNames
 
 -