protected class CacheAspectSupport.CacheOperationContext extends Object implements CacheOperationInvocationContext<CacheOperation>
CacheOperationInvocationContext context for a CacheOperation.| Constructor and Description | 
|---|
CacheOperationContext(CacheAspectSupport.CacheOperationMetadata metadata,
                     Object[] args,
                     Object target)  | 
| Modifier and Type | Method and Description | 
|---|---|
protected boolean | 
canPutToCache(Object value)  | 
protected Object | 
generateKey(Object result)
Compute the key for the given caching operation. 
 | 
Object[] | 
getArgs()
Return the argument list used to invoke the method. 
 | 
protected Collection<String> | 
getCacheNames()  | 
protected Collection<? extends Cache> | 
getCaches()  | 
Method | 
getMethod()
Return the method which was invoked. 
 | 
CacheOperation | 
getOperation()
Return the cache operation. 
 | 
Object | 
getTarget()
Return the target instance on which the method was invoked. 
 | 
protected boolean | 
isConditionPassing(Object result)  | 
public CacheOperationContext(CacheAspectSupport.CacheOperationMetadata metadata, Object[] args, Object target)
public CacheOperation getOperation()
CacheOperationInvocationContextgetOperation in interface CacheOperationInvocationContext<CacheOperation>public Object getTarget()
CacheOperationInvocationContextgetTarget in interface CacheOperationInvocationContext<CacheOperation>public Method getMethod()
CacheOperationInvocationContextgetMethod in interface CacheOperationInvocationContext<CacheOperation>public Object[] getArgs()
CacheOperationInvocationContextgetArgs in interface CacheOperationInvocationContext<CacheOperation>@Nullable protected Object generateKey(@Nullable Object result)
protected Collection<? extends Cache> getCaches()
protected Collection<String> getCacheNames()