| java.lang.Object org.springframework.aop.support.MethodMatchers
MethodMatchers | abstract public class MethodMatchers (Code) | | Static utility methods for composing
org.springframework.aop.MethodMatcher MethodMatchers .
A MethodMatcher may be evaluated statically (based on method
and target class) or need further evaluation dynamically
(based on arguments at the time of method invocation).
author: Rod Johnson author: Rob Harrop author: Juergen Hoeller since: 11.11.2003 See Also: ClassFilters See Also: Pointcuts |
intersection | public static MethodMatcher intersection(MethodMatcher mm1, MethodMatcher mm2)(Code) | | Match all methods that both of the given MethodMatchers match.
Parameters: mm1 - the first MethodMatcher Parameters: mm2 - the second MethodMatcher a distinct MethodMatcher that matches all methods that bothof the given MethodMatchers match |
matches | public static boolean matches(MethodMatcher mm, Method method, Class targetClass, boolean hasIntroductions)(Code) | | Apply the given MethodMatcher to the given Method, supporting an
org.springframework.aop.IntroductionAwareMethodMatcher (if applicable).
Parameters: mm - the MethodMatcher to apply (may be an IntroductionAwareMethodMatcher) Parameters: method - the candidate method Parameters: targetClass - the target class (may be null , in which casethe candidate class must be taken to be the method's declaring class) Parameters: hasIntroductions - true if the object on whose behalf we areasking is the subject on one or more introductions; false otherwise whether or not this method matches statically |
union | public static MethodMatcher union(MethodMatcher mm1, MethodMatcher mm2)(Code) | | Match all methods that either (or both) of the given MethodMatchers matches.
Parameters: mm1 - the first MethodMatcher Parameters: mm2 - the second MethodMatcher a distinct MethodMatcher that matches all methods that eitherof the given MethodMatchers matches |
union | static MethodMatcher union(MethodMatcher mm1, ClassFilter cf1, MethodMatcher mm2, ClassFilter cf2)(Code) | | Match all methods that either (or both) of the given MethodMatchers matches.
Parameters: mm1 - the first MethodMatcher Parameters: cf1 - the corresponding ClassFilter for the first MethodMatcher Parameters: mm2 - the second MethodMatcher Parameters: cf2 - the corresponding ClassFilter for the second MethodMatcher a distinct MethodMatcher that matches all methods that eitherof the given MethodMatchers matches |
|
|