程序包 infra.aop

接口 Pointcut

所有已知子接口:
ExpressionPointcut
所有已知实现类:
AbstractExpressionPointcut, AbstractRegexpMethodPointcut, AnnotationMatchingPointcut, AspectJExpressionPointcut, ComposablePointcut, ControlFlowPointcut, DynamicMethodMatcherPointcut, InstantiationModelAwarePointcutAdvisorImpl.PerTargetInstantiationModelPointcut, JdkRegexpMethodPointcut, NameMatchMethodPointcut, Pointcut.GetterPointcut, Pointcut.SetterPointcut, StaticMethodMatcherPointcut, StaticMethodMatcherPointcutAdvisor, TruePointcut

public interface Pointcut
Core pointcut abstraction.

A pointcut is composed of a ClassFilter and a MethodMatcher. Both these basic terms and a Pointcut itself can be combined to build up combinations (e.g. through ComposablePointcut).

从以下版本开始:
3.0
作者:
Rod Johnson, TODAY 2021/2/1 18:12
另请参阅:
  • 字段详细资料

    • TRUE

      static final Pointcut TRUE
      Canonical Pointcut instance that always matches.
    • SETTERS

      static final Pointcut SETTERS
      Pointcut matching all bean property setters, in any class.
    • GETTERS

      static final Pointcut GETTERS
      Pointcut matching all bean property getters, in any class.
  • 方法详细资料

    • getClassFilter

      ClassFilter getClassFilter()
      Return the ClassFilter for this pointcut.
      返回:
      the ClassFilter (never null)
    • getMethodMatcher

      MethodMatcher getMethodMatcher()
      Return the MethodMatcher for this pointcut.
      返回:
      the MethodMatcher (never null)
    • union

      static Pointcut union(Pointcut pc1, Pointcut pc2)
      Match all methods that either (or both) of the given pointcuts matches.
      参数:
      pc1 - the first Pointcut
      pc2 - the second Pointcut
      返回:
      a distinct Pointcut that matches all methods that either of the given Pointcuts matches
    • intersection

      static Pointcut intersection(Pointcut pc1, Pointcut pc2)
      Match all methods that both the given pointcuts match.
      参数:
      pc1 - the first Pointcut
      pc2 - the second Pointcut
      返回:
      a distinct Pointcut that matches all methods that both of the given Pointcuts match
    • matches

      static boolean matches(Pointcut pointcut, MethodInvocation invocation)
      Perform the least expensive check for a pointcut match.
      参数:
      pointcut - the pointcut to match
      invocation - runtime invocation contains the candidate method and target class, arguments to the method
      返回:
      whether there's a runtime match
    • matches

      static boolean matches(Pointcut pointcut, Method method, Class<?> targetClass, Object... args)
      Perform the least expensive check for a pointcut match.
      参数:
      pointcut - the pointcut to match
      method - the candidate method
      targetClass - the target class
      args - arguments to the method
      返回:
      whether there's a runtime match