org.springframework.cache.interceptor
Class CacheOperationSourcePointcut

java.lang.Object
  extended by org.springframework.aop.support.StaticMethodMatcher
      extended by org.springframework.aop.support.StaticMethodMatcherPointcut
          extended by org.springframework.cache.interceptor.CacheOperationSourcePointcut
All Implemented Interfaces:
java.io.Serializable, MethodMatcher, Pointcut

abstract class CacheOperationSourcePointcut
extends StaticMethodMatcherPointcut
implements java.io.Serializable

A Pointcut that matches if the underlying CacheOperationSource has an attribute for a given method.

Since:
3.1
Author:
Costin Leau

Field Summary
 
Fields inherited from interface org.springframework.aop.Pointcut
TRUE
 
Fields inherited from interface org.springframework.aop.MethodMatcher
TRUE
 
Constructor Summary
CacheOperationSourcePointcut()
           
 
Method Summary
 boolean equals(java.lang.Object other)
           
protected abstract  CacheOperationSource getCacheOperationSource()
          Obtain the underlying CacheOperationSource (may be null).
 int hashCode()
           
 boolean matches(java.lang.reflect.Method method, java.lang.Class<?> targetClass)
          Perform static checking whether the given method matches.
 java.lang.String toString()
           
 
Methods inherited from class org.springframework.aop.support.StaticMethodMatcherPointcut
getClassFilter, getMethodMatcher, setClassFilter
 
Methods inherited from class org.springframework.aop.support.StaticMethodMatcher
isRuntime, matches
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CacheOperationSourcePointcut

CacheOperationSourcePointcut()
Method Detail

matches

public boolean matches(java.lang.reflect.Method method,
                       java.lang.Class<?> targetClass)
Description copied from interface: MethodMatcher
Perform static checking whether the given method matches. If this returns false or if the MethodMatcher.isRuntime() method returns false, no runtime check (i.e. no. MethodMatcher.matches(java.lang.reflect.Method, Class, Object[]) call) will be made.

Specified by:
matches in interface MethodMatcher
Parameters:
method - the candidate method
targetClass - the target class (may be null, in which case the candidate class must be taken to be the method's declaring class)
Returns:
whether or not this method matches statically

equals

public boolean equals(java.lang.Object other)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getCacheOperationSource

protected abstract CacheOperationSource getCacheOperationSource()
Obtain the underlying CacheOperationSource (may be null). To be implemented by subclasses.