protected class CacheAspectSupport.CacheOperationContext extends java.lang.Object implements CacheOperationInvocationContext<CacheOperation>
CacheOperationInvocationContext
context for a 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()
CacheOperationInvocationContext
getOperation
in interface CacheOperationInvocationContext<CacheOperation>
public java.lang.Object getTarget()
CacheOperationInvocationContext
getTarget
in interface CacheOperationInvocationContext<CacheOperation>
public java.lang.reflect.Method getMethod()
CacheOperationInvocationContext
getMethod
in interface CacheOperationInvocationContext<CacheOperation>
public java.lang.Object[] getArgs()
CacheOperationInvocationContext
getArgs
in interface CacheOperationInvocationContext<CacheOperation>
protected boolean isConditionPassing(@Nullable java.lang.Object result)
protected boolean canPutToCache(@Nullable java.lang.Object value)
@Nullable protected java.lang.Object generateKey(@Nullable java.lang.Object result)
protected java.util.Collection<? extends Cache> getCaches()
protected java.util.Collection<java.lang.String> getCacheNames()