org.springframework.cache.interceptor
Class DefaultCacheExpressionRootObject

java.lang.Object
  extended by org.springframework.cache.interceptor.DefaultCacheExpressionRootObject

public class DefaultCacheExpressionRootObject
extends Object

Default implementation of expression root object.

Author:
Costin Leau

Constructor Summary
DefaultCacheExpressionRootObject(Collection<Cache<?,?>> caches, String methodName)
           
 
Method Summary
 Collection<Cache<?,?>> getCaches()
          Returns the caches against which the method is executed.
 String getMethodName()
          Returns the name of the method being cached.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultCacheExpressionRootObject

public DefaultCacheExpressionRootObject(Collection<Cache<?,?>> caches,
                                        String methodName)
Method Detail

getMethodName

public String getMethodName()
Returns the name of the method being cached.

Returns:
name of the cached method.

getCaches

public Collection<Cache<?,?>> getCaches()
Returns the caches against which the method is executed.

Returns:
current cache