Package org.springframework.aop.support
Class DynamicMethodMatcher
java.lang.Object
org.springframework.aop.support.DynamicMethodMatcher
- All Implemented Interfaces:
- MethodMatcher
- Direct Known Subclasses:
- DynamicMethodMatcherPointcut
Convenient abstract superclass for dynamic method matchers,
 which do care about arguments at runtime.
- Author:
- Rod Johnson
- 
Field SummaryFields inherited from interface org.springframework.aop.MethodMatcherTRUE
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionfinal booleanIs this MethodMatcher dynamic, that is, must a final call be made on theMethodMatcher.matches(java.lang.reflect.Method, Class, Object[])method at runtime even if the 2-arg matches method returnstrue?booleanCan override to add preconditions for dynamic matching.Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.aop.MethodMatchermatches
- 
Constructor Details- 
DynamicMethodMatcherpublic DynamicMethodMatcher()
 
- 
- 
Method Details- 
isRuntimepublic final boolean isRuntime()Description copied from interface:MethodMatcherIs this MethodMatcher dynamic, that is, must a final call be made on theMethodMatcher.matches(java.lang.reflect.Method, Class, Object[])method at runtime even if the 2-arg matches method returnstrue?Can be invoked when an AOP proxy is created, and need not be invoked again before each method invocation, - Specified by:
- isRuntimein interface- MethodMatcher
- Returns:
- whether a runtime match via the 3-arg
 MethodMatcher.matches(java.lang.reflect.Method, Class, Object[])method is required if static matching passed
 
- 
matchesCan override to add preconditions for dynamic matching. This implementation always returns true.- Specified by:
- matchesin interface- MethodMatcher
- Parameters:
- method- the candidate method
- targetClass- the target class
- Returns:
- whether this method matches statically
 
 
-