Top Description Fields Methods
org.springframework.aop

public Interface IntroductionAwareMethodMatcher

extends MethodMatcher
Known Direct Implementers
org.springframework.aop.aspectj.AspectJExpressionPointcut, org.springframework.aop.support.MethodMatchers.UnionIntroductionAwareMethodMatcher, org.springframework.aop.support.MethodMatchers.ClassFilterAwareUnionIntroductionAwareMethodMatcher, org.springframework.aop.support.MethodMatchers.IntersectionIntroductionAwareMethodMatcher
Imports
java.lang.reflect.Method

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.
Author
Adrian Colyer
Since
2.0

Field Summary

Inherited from org.springframework.aop.MethodMatcher:
TRUE

Method Summary

Modifier and TypeMethod and Description
public boolean

Returns:

whether this method matches statically
matches
(Method
the candidate method
method
,
Class<?>
the target class
targetClass
,
boolean
true if the object on whose behalf we are asking is the subject on one or more introductions; false otherwise
hasIntroductions
)

Perform static checking whether the given method matches.

Inherited from org.springframework.aop.MethodMatcher:
isRuntimematchesmatches

Method Detail

matchesback to summary
public boolean matches(Method method, Class<?> targetClass, boolean hasIntroductions)

Perform static checking whether the given method matches. This may be invoked instead of the 2-arg matches(java.lang.reflect.Method, Class) method if the caller supports the extended IntroductionAwareMethodMatcher interface.

Parameters
method:Method

the candidate method

targetClass:Class<?>

the target class

hasIntroductions:boolean

true if the object on whose behalf we are asking is the subject on one or more introductions; false otherwise

Returns:boolean

whether this method matches statically