Contents
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
.- Since:
- 3.1
- Author:
- Costin Leau, Juergen Hoeller, Chris Beams, Phillip Webb, Sam Brannen, Stephane Nicoll, Sebastien Deleuze
-
Constructor Summary
ConstructorsConstructorDescriptionCacheOperationContext
(CacheAspectSupport.CacheOperationMetadata metadata, @Nullable Object[] args, Object target) -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
canPutToCache
(@Nullable Object value) generateKey
(@Nullable Object result) Compute the key for the given caching operation.getArgs()
Return the argument list used to invoke the method.protected Collection
<String> protected Collection
<? extends Cache> Get generated key.Return the method which was invoked.Return the cache operation.Return the target instance on which the method was invoked.protected boolean
isConditionPassing
(@Nullable Object result)
-
Constructor Details
-
CacheOperationContext
public CacheOperationContext(CacheAspectSupport.CacheOperationMetadata metadata, @Nullable Object[] args, Object target)
-
-
Method Details
-
getOperation
Description copied from interface:CacheOperationInvocationContext
Return the cache operation.- Specified by:
getOperation
in interfaceCacheOperationInvocationContext<CacheOperation>
-
getTarget
Description copied from interface:CacheOperationInvocationContext
Return the target instance on which the method was invoked.- Specified by:
getTarget
in interfaceCacheOperationInvocationContext<CacheOperation>
-
getMethod
Description copied from interface:CacheOperationInvocationContext
Return the method which was invoked.- Specified by:
getMethod
in interfaceCacheOperationInvocationContext<CacheOperation>
-
getArgs
Description copied from interface:CacheOperationInvocationContext
Return the argument list used to invoke the method.- Specified by:
getArgs
in interfaceCacheOperationInvocationContext<CacheOperation>
-
isConditionPassing
-
canPutToCache
-
generateKey
-
getGeneratedKey
-
getCaches
-
getCacheNames
-