类 DefaultPointcutAdvisor
java.lang.Object
infra.core.OrderedSupport
infra.aop.support.AbstractPointcutAdvisor
infra.aop.support.AbstractGenericPointcutAdvisor
infra.aop.support.DefaultPointcutAdvisor
- 所有已实现的接口:
Advisor,PointcutAdvisor,infra.core.Ordered,Serializable
Convenient Pointcut-driven Advisor implementation.
This is the most commonly used Advisor implementation. It can be used with any pointcut and advice type, except for introductions. There is normally no need to subclass this class, or to implement custom Advisors.
- 从以下版本开始:
- 3.0
- 作者:
- Rod Johnson, Juergen Hoeller, TODAY 2021/2/1 19:05
- 另请参阅:
-
字段概要
字段从类继承的字段 infra.core.OrderedSupport
order从接口继承的字段 infra.aop.Advisor
EMPTY_ADVICE从接口继承的字段 infra.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
构造器概要
构造器构造器说明Create an empty DefaultPointcutAdvisor.DefaultPointcutAdvisor(Pointcut pointcut, Advice advice) Create a DefaultPointcutAdvisor, specifying Pointcut and Advice.DefaultPointcutAdvisor(Advice advice) Create a DefaultPointcutAdvisor that matches all methods. -
方法概要
修饰符和类型方法说明Get the Pointcut that drives this advisor.voidsetPointcut(Pointcut pointcut) Specify the pointcut targeting the advice.toString()从类继承的方法 infra.aop.support.AbstractGenericPointcutAdvisor
getAdvice, setAdvice从类继承的方法 infra.aop.support.AbstractPointcutAdvisor
equals, getOrder, hashCode从类继承的方法 infra.core.OrderedSupport
setOrder从接口继承的方法 infra.aop.Advisor
isPerInstance
-
字段详细资料
-
pointcut
-
-
构造器详细资料
-
DefaultPointcutAdvisor
public DefaultPointcutAdvisor()Create an empty DefaultPointcutAdvisor.Advice must be set before use using setter methods. Pointcut will normally be set also, but defaults to
Pointcut.TRUE. -
DefaultPointcutAdvisor
Create a DefaultPointcutAdvisor that matches all methods.Pointcut.TRUEwill be used as Pointcut.- 参数:
advice- the Advice to use
-
DefaultPointcutAdvisor
Create a DefaultPointcutAdvisor, specifying Pointcut and Advice.- 参数:
pointcut- the Pointcut targeting the Adviceadvice- the Advice to run when Pointcut matches
-
-
方法详细资料
-
setPointcut
Specify the pointcut targeting the advice.Default is
Pointcut.TRUE. -
getPointcut
从接口复制的说明:PointcutAdvisorGet the Pointcut that drives this advisor.- 指定者:
getPointcut在接口中PointcutAdvisor
-
toString
-