类 NameMatchMethodPointcut
java.lang.Object
infra.core.OrderedSupport
infra.aop.support.StaticMethodMatcher
infra.aop.support.StaticMethodMatcherPointcut
infra.aop.support.NameMatchMethodPointcut
- 所有已实现的接口:
MethodMatcher,Pointcut,infra.core.ArraySizeTrimmer,infra.core.Ordered,Serializable
public class NameMatchMethodPointcut
extends StaticMethodMatcherPointcut
implements Serializable, infra.core.ArraySizeTrimmer
Pointcut bean for simple method name matches, as an alternative to regexp patterns.
Does not handle overloaded methods: all methods with a given name will be eligible.
- 从以下版本开始:
- 3.0
- 作者:
- Juergen Hoeller, Rod Johnson, Rob Harrop, TODAY 2021/2/3 23:50
- 另请参阅:
-
嵌套类概要
从接口继承的嵌套类/接口 infra.aop.MethodMatcher
MethodMatcher.ClassFilterAwareUnionIntroductionAwareMethodMatcher, MethodMatcher.ClassFilterAwareUnionMethodMatcher, MethodMatcher.IntersectionIntroductionAwareMethodMatcher, MethodMatcher.IntersectionMethodMatcher, MethodMatcher.NegateMethodMatcher, MethodMatcher.UnionIntroductionAwareMethodMatcher, MethodMatcher.UnionMethodMatcher从接口继承的嵌套类/接口 infra.aop.Pointcut
Pointcut.GetterPointcut, Pointcut.SetterPointcut -
字段概要
字段从类继承的字段 infra.core.OrderedSupport
order从接口继承的字段 infra.aop.MethodMatcher
TRUE从接口继承的字段 infra.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明addMethodName(String name) Add another eligible method name, in addition to those already named.booleaninthashCode()protected booleanReturn if the given method name matches the mapped name.booleanChecking whether the given method matches.voidsetMappedName(String mappedName) Convenience method when we have only a single method name to match.voidsetMappedNames(String... mappedNames) Set the method names defining methods to match.toString()void从类继承的方法 infra.aop.support.StaticMethodMatcherPointcut
getClassFilter, getMethodMatcher, setClassFilter从类继承的方法 infra.aop.support.StaticMethodMatcher
isRuntime, matches从类继承的方法 infra.core.OrderedSupport
getOrder, setOrder
-
字段详细资料
-
mappedNames
-
-
构造器详细资料
-
NameMatchMethodPointcut
public NameMatchMethodPointcut()
-
-
方法详细资料
-
setMappedName
Convenience method when we have only a single method name to match. Use either this method orsetMappedNames, not both. -
setMappedNames
Set the method names defining methods to match. Matching will be the union of all these; if any match, the pointcut matches.- 另请参阅:
-
addMethodName
Add another eligible method name, in addition to those already named. Like the set methods, this method is for use when configuring proxies, before a proxy is used.NB: This method does not work after the proxy is in use, as advice chains will be cached.
- 参数:
name- the name of the additional method that will match- 返回:
- this pointcut to allow for multiple additions in one line
-
matches
从接口复制的说明:MethodMatcherChecking whether the given method matches.- 指定者:
matches在接口中MethodMatcher- 参数:
method- the candidate methodtargetClass- the target class- 返回:
- whether or not this method matches on application startup.
-
isMatch
Return if the given method name matches the mapped name.The default implementation checks for "xxx*", "*xxx" and "*xxx*" matches, as well as direct equality. Can be overridden in subclasses.
- 参数:
methodName- the method name of the classmappedName- the name in the descriptor- 返回:
- if the names match
- 另请参阅:
-
StringUtils.simpleMatch(String, String)
-
equals
-
hashCode
public int hashCode() -
toString
-
trimToSize
public void trimToSize()- 指定者:
trimToSize在接口中infra.core.ArraySizeTrimmer
-