类 NameMatchMethodPointcutAdvisor
- java.lang.Object
- org.springframework.aop.support.AbstractPointcutAdvisor
- org.springframework.aop.support.AbstractGenericPointcutAdvisor
- org.springframework.aop.support.NameMatchMethodPointcutAdvisor
- 所有已实现的接口:
Serializable
,Advisor
,PointcutAdvisor
,Ordered
public class NameMatchMethodPointcutAdvisor extends AbstractGenericPointcutAdvisor
Convenient class for name-match method pointcuts that hold an Advice, making them an Advisor.- 作者:
- Juergen Hoeller, Rob Harrop
- 另请参阅:
NameMatchMethodPointcut
, 序列化表格
字段概要
从接口继承的字段 org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
构造器概要
构造器 构造器 说明 NameMatchMethodPointcutAdvisor()
NameMatchMethodPointcutAdvisor(Advice advice)
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 NameMatchMethodPointcut
addMethodName(String name)
Add another eligible method name, in addition to those already named.Pointcut
getPointcut()
Get the Pointcut that drives this advisor.void
setClassFilter(ClassFilter classFilter)
Set theClassFilter
to use for this pointcut.void
setMappedName(String mappedName)
Convenience method when we have only a single method name to match.void
setMappedNames(String... mappedNames)
Set the method names defining methods to match.从类继承的方法 org.springframework.aop.support.AbstractGenericPointcutAdvisor
getAdvice, setAdvice, toString
从类继承的方法 org.springframework.aop.support.AbstractPointcutAdvisor
equals, getOrder, hashCode, isPerInstance, setOrder
构造器详细资料
NameMatchMethodPointcutAdvisor
public NameMatchMethodPointcutAdvisor()
NameMatchMethodPointcutAdvisor
public NameMatchMethodPointcutAdvisor(Advice advice)
方法详细资料
setClassFilter
public void setClassFilter(ClassFilter classFilter)
Set theClassFilter
to use for this pointcut. Default isClassFilter.TRUE
.
setMappedName
public void setMappedName(String mappedName)
Convenience method when we have only a single method name to match. Use either this method orsetMappedNames
, not both.
setMappedNames
public void setMappedNames(String... mappedNames)
Set the method names defining methods to match. Matching will be the union of all these; if any match, the pointcut matches.
addMethodName
public NameMatchMethodPointcut addMethodName(String name)
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
- name of the additional method that will match- 返回:
- this pointcut to allow for multiple additions in one line
- 另请参阅:
NameMatchMethodPointcut.addMethodName(java.lang.String)
getPointcut
public Pointcut getPointcut()
从接口复制的说明:PointcutAdvisor
Get the Pointcut that drives this advisor.