类 DynamicMethodMatcher
java.lang.Object
infra.aop.support.DynamicMethodMatcher
- 所有已实现的接口:
MethodMatcher
- 直接已知子类:
DynamicMethodMatcherPointcut
Convenient abstract superclass for dynamic method matchers,
which do care about arguments at runtime.
- 从以下版本开始:
- 3.0
- 作者:
- Rod Johnson, TODAY 2021/2/4 11:48
-
嵌套类概要
从接口继承的嵌套类/接口 infra.aop.MethodMatcher
MethodMatcher.ClassFilterAwareUnionIntroductionAwareMethodMatcher, MethodMatcher.ClassFilterAwareUnionMethodMatcher, MethodMatcher.IntersectionIntroductionAwareMethodMatcher, MethodMatcher.IntersectionMethodMatcher, MethodMatcher.NegateMethodMatcher, MethodMatcher.UnionIntroductionAwareMethodMatcher, MethodMatcher.UnionMethodMatcher -
字段概要
从接口继承的字段 infra.aop.MethodMatcher
TRUE -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明protected Class<?>getTargetClass(MethodInvocation invocation) final booleanIs this MethodMatcher dynamic, that is, must a final call be made on theMethodMatcher.matches(MethodInvocation)method at runtime even if the 2-arg matches method returnstrue?booleanCan override to add preconditions for dynamic matching.从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait从接口继承的方法 infra.aop.MethodMatcher
matches
-
构造器详细资料
-
DynamicMethodMatcher
public DynamicMethodMatcher()
-
-
方法详细资料
-
isRuntime
public final boolean isRuntime()从接口复制的说明:MethodMatcherIs this MethodMatcher dynamic, that is, must a final call be made on theMethodMatcher.matches(MethodInvocation)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,
- 指定者:
isRuntime在接口中MethodMatcher- 返回:
- whether or not a runtime match via the 1-arg
MethodMatcher.matches(MethodInvocation)method is required if static matching passed
-
matches
Can override to add preconditions for dynamic matching. This implementation always returns true.- 指定者:
matches在接口中MethodMatcher- 参数:
method- the candidate methodtargetClass- the target class- 返回:
- whether or not this method matches on application startup.
-
getTargetClass
-