protected class CacheAspectSupport.CacheOperationContext extends Object implements CacheOperationInvocationContext<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)
Computes the key for the given caching operation.
|
Object[] |
getArgs()
Return the argument used to invoke the method
|
protected Collection<? extends Cache> |
getCaches() |
Method |
getMethod()
Return the method
|
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()
CacheOperationInvocationContext
getOperation
in interface CacheOperationInvocationContext<CacheOperation>
public Object getTarget()
CacheOperationInvocationContext
getTarget
in interface CacheOperationInvocationContext<CacheOperation>
public Method getMethod()
CacheOperationInvocationContext
getMethod
in interface CacheOperationInvocationContext<CacheOperation>
public Object[] getArgs()
CacheOperationInvocationContext
getArgs
in interface CacheOperationInvocationContext<CacheOperation>
protected boolean isConditionPassing(Object result)
protected boolean canPutToCache(Object value)
protected Object generateKey(Object result)
protected Collection<? extends Cache> getCaches()