org.springframework.aop.aspectj
Class AbstractAspectJAdvice.AdviceExcludingMethodMatcher

java.lang.Object
  extended by org.springframework.aop.support.StaticMethodMatcher
      extended by org.springframework.aop.aspectj.AbstractAspectJAdvice.AdviceExcludingMethodMatcher
All Implemented Interfaces:
MethodMatcher
Enclosing class:
AbstractAspectJAdvice

private static class AbstractAspectJAdvice.AdviceExcludingMethodMatcher
extends StaticMethodMatcher

MethodMatcher that excludes the specified advice method.

See Also:
AbstractAspectJAdvice.buildSafePointcut()

Field Summary
private  java.lang.reflect.Method adviceMethod
           
 
Fields inherited from interface org.springframework.aop.MethodMatcher
TRUE
 
Constructor Summary
AbstractAspectJAdvice.AdviceExcludingMethodMatcher(java.lang.reflect.Method adviceMethod)
           
 
Method Summary
 boolean matches(java.lang.reflect.Method method, java.lang.Class targetClass)
          Perform static checking whether the given method matches.
 
Methods inherited from class org.springframework.aop.support.StaticMethodMatcher
isRuntime, matches
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

adviceMethod

private final java.lang.reflect.Method adviceMethod
Constructor Detail

AbstractAspectJAdvice.AdviceExcludingMethodMatcher

public AbstractAspectJAdvice.AdviceExcludingMethodMatcher(java.lang.reflect.Method adviceMethod)
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.

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