org.springframework.cache.interceptor
Class CacheAspectSupport.CacheOperationContext

java.lang.Object
  extended by org.springframework.cache.interceptor.CacheAspectSupport.CacheOperationContext
Enclosing class:
CacheAspectSupport

protected class CacheAspectSupport.CacheOperationContext
extends java.lang.Object


Field Summary
private  java.lang.Object[] args
           
private  java.util.Collection<Cache> caches
           
private  EvaluationContext evalContext
           
private  java.lang.reflect.Method method
           
private  CacheOperation operation
           
private  java.lang.Object target
           
 
Constructor Summary
CacheAspectSupport.CacheOperationContext(CacheOperation operation, java.lang.reflect.Method method, java.lang.Object[] args, java.lang.Object target, java.lang.Class<?> targetClass)
           
 
Method Summary
protected  java.lang.Object generateKey()
          Computes the key for the given caching operation.
protected  java.util.Collection<Cache> getCaches()
           
protected  boolean isConditionPassing()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

operation

private final CacheOperation operation

caches

private final java.util.Collection<Cache> caches

target

private final java.lang.Object target

method

private final java.lang.reflect.Method method

args

private final java.lang.Object[] args

evalContext

private final EvaluationContext evalContext
Constructor Detail

CacheAspectSupport.CacheOperationContext

public CacheAspectSupport.CacheOperationContext(CacheOperation operation,
                                                java.lang.reflect.Method method,
                                                java.lang.Object[] args,
                                                java.lang.Object target,
                                                java.lang.Class<?> targetClass)
Method Detail

isConditionPassing

protected boolean isConditionPassing()

generateKey

protected java.lang.Object generateKey()
Computes the key for the given caching operation.

Returns:
generated key (null if none can be generated)

getCaches

protected java.util.Collection<Cache> getCaches()