spring-framework / org.springframework.aop / IntroductionAwareMethodMatcher

IntroductionAwareMethodMatcher

interface IntroductionAwareMethodMatcher : 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.

Author
Adrian Colyer

Since
2.0

Functions

matches

abstract fun matches(method: Method, targetClass: Class<*>, hasIntroductions: Boolean): Boolean

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.

Inheritors

AspectJExpressionPointcut

open class AspectJExpressionPointcut : AbstractExpressionPointcut, ClassFilter, IntroductionAwareMethodMatcher, BeanFactoryAware

Spring org.springframework.aop.Pointcut implementation that uses the AspectJ weaver to evaluate a pointcut expression.

The pointcut expression value is an AspectJ expression. This can reference other pointcuts and use composition and other operations.

Naturally, as this is to be processed by Spring AOP's proxy-based model, only method execution pointcuts are supported.