类 NameMatchMethodPointcutAdvisor
java.lang.Object
infra.core.OrderedSupport
infra.aop.support.AbstractPointcutAdvisor
infra.aop.support.AbstractGenericPointcutAdvisor
infra.aop.support.NameMatchMethodPointcutAdvisor
- 所有已实现的接口:
Advisor,PointcutAdvisor,infra.core.Ordered,Serializable
Convenient class for name-match method pointcuts that hold an Advice,
making them an Advisor.
- 从以下版本开始:
- 3.0
- 作者:
- Juergen Hoeller, Rob Harrop, TODAY 2021/2/4 12:09
- 另请参阅:
-
字段概要
字段从类继承的字段 infra.core.OrderedSupport
order从接口继承的字段 infra.aop.Advisor
EMPTY_ADVICE从接口继承的字段 infra.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明addMethodName(String name) Add another eligible method name, in addition to those already named.Get the Pointcut that drives this advisor.voidsetClassFilter(ClassFilter classFilter) Set theClassFilterto use for this pointcut.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.从类继承的方法 infra.aop.support.AbstractGenericPointcutAdvisor
getAdvice, setAdvice, toString从类继承的方法 infra.aop.support.AbstractPointcutAdvisor
equals, getOrder, hashCode从类继承的方法 infra.core.OrderedSupport
setOrder从接口继承的方法 infra.aop.Advisor
isPerInstance
-
字段详细资料
-
pointcut
-
-
构造器详细资料
-
NameMatchMethodPointcutAdvisor
public NameMatchMethodPointcutAdvisor() -
NameMatchMethodPointcutAdvisor
-
-
方法详细资料
-
setClassFilter
Set theClassFilterto use for this pointcut. Default isClassFilter.TRUE. -
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.- 参数:
name- the name of the additional method that will match- 返回:
- this pointcut to allow for multiple additions in one line
- 另请参阅:
-
getPointcut
从接口复制的说明:PointcutAdvisorGet the Pointcut that drives this advisor.
-