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