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)
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()
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)
null
if none can be generatedprotected Collection<? extends Cache> getCaches()
protected Collection<String> getCacheNames()