The Spring Framework

org.springframework.aop
Interface IntroductionAwareMethodMatcher

All Superinterfaces:
MethodMatcher
All Known Implementing Classes:
AspectJExpressionPointcut

public interface IntroductionAwareMethodMatcher
extends MethodMatcher

A specialized type of MethodMatcher that takes into account introductions when matching methods. If there are no introductions on the target class, a method matcher may be able to optimize matching more effectively for example.

Since:
2.0
Author:
Adrian Colyer

Field Summary
 
Fields inherited from interface org.springframework.aop.MethodMatcher
TRUE
 
Method Summary
 boolean matches(Method method, Class targetClass, boolean beanHasIntroductions)
          Perform static checking.
 
Methods inherited from interface org.springframework.aop.MethodMatcher
isRuntime, matches, matches
 

Method Detail

matches

boolean matches(Method method,
                Class targetClass,
                boolean beanHasIntroductions)
Perform static checking. If this returns false, or if the isRuntime() method returns false, no runtime check will be made.

Parameters:
method - the candidate method
targetClass - target class (may be null, in which case the candidate class must be taken to be the method's declaring class)
beanHasIntroductions - true if the bean on whose behalf we are asking is the subject on one or more introductions, and false otherwise
Returns:
whether or not this method matches statically

The Spring Framework

Copyright © 2002-2006 The Spring Framework.