|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.aop.support.DynamicMethodMatcher
Convenient abstract superclass for dynamic method matchers, which do care about arguments at runtime.
Field Summary |
Fields inherited from interface org.springframework.aop.MethodMatcher |
TRUE |
Constructor Summary | |
DynamicMethodMatcher()
|
Method Summary | |
boolean |
isRuntime()
Is this MethodMatcher dynamic? Must a final call be made on the matches(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, |
boolean |
matches(java.lang.reflect.Method m,
java.lang.Class targetClass)
Can override to add preconditions for dynamic matching. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.springframework.aop.MethodMatcher |
matches |
Constructor Detail |
public DynamicMethodMatcher()
Method Detail |
public final boolean isRuntime()
MethodMatcher
Note: Could be pulled up into a Matcher super-interface to apply to fields also.
isRuntime
in interface MethodMatcher
public boolean matches(java.lang.reflect.Method m, java.lang.Class targetClass)
matches
in interface MethodMatcher
m
- candidate methodtargetClass
- target class (may be null, in which case the candidate
class must be taken to be the method's declaring class)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |