org.springframework.aop.IntroductionAwareMethodMatcher |
Known Indirect Subclasses
|
Class Overview
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.
Summary
Public Methods |
abstract
boolean
|
matches(Method method, Class targetClass, boolean hasIntroductions)
Perform static checking whether the given method matches.
|
[Expand]
Inherited Methods |
From interface
org.springframework.aop.MethodMatcher
abstract
boolean
|
isRuntime()
Is this MethodMatcher dynamic, that is, must a final call be made on the
matches(java.lang.reflect.Method, Class, Object[]) method at
runtime even if the 2-arg matches method returns true ?
Can be invoked when an AOP proxy is created, and need not be invoked
again before each method invocation,
|
abstract
boolean
|
matches(Method method, Class<?> targetClass)
Perform static checking whether the given method matches.
|
abstract
boolean
|
matches(Method method, Class<?> targetClass, Object[] args)
Check whether there a runtime (dynamic) match for this method,
which must have matched statically.
|
|
Public Methods
public
abstract
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
| 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) |
hasIntroductions
| true if the object on whose behalf we are
asking is the subject on one or more introductions; false otherwise |
Returns
- whether or not this method matches statically