类 DefaultPointcutAdvisor

java.lang.Object
infra.core.OrderedSupport
所有已实现的接口:
Advisor, PointcutAdvisor, infra.core.Ordered, Serializable
直接已知子类:
ReflectiveAspectJAdvisorFactory.SyntheticInstantiationAdvisor

public class DefaultPointcutAdvisor extends AbstractGenericPointcutAdvisor implements 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
另请参阅:
  • 字段详细资料

  • 构造器详细资料

    • 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

      public DefaultPointcutAdvisor(Advice advice)
      Create a DefaultPointcutAdvisor that matches all methods.

      Pointcut.TRUE will be used as Pointcut.

      参数:
      advice - the Advice to use
    • DefaultPointcutAdvisor

      public DefaultPointcutAdvisor(Pointcut pointcut, Advice advice)
      Create a DefaultPointcutAdvisor, specifying Pointcut and Advice.
      参数:
      pointcut - the Pointcut targeting the Advice
      advice - the Advice to run when Pointcut matches
  • 方法详细资料