程序包 cn.taketoday.aop

接口 ClassFilter

所有已知实现类:
AnnotationClassFilter, AspectJExpressionPointcut, ControlFlowPointcut, DefaultIntroductionAdvisor, RootClassFilter, TypePatternClassFilter
函数接口:
这是一个函数接口, 因此可用作 lambda 表达式或方法引用的赋值目标。

@FunctionalInterface public interface ClassFilter
Filter that restricts matching of a pointcut or introduction to a given set of target classes.

Can be used as part of a Pointcut or for the entire targeting of an IntroductionAdvisor.

Concrete implementations of this interface typically should provide proper implementations of Object.equals(Object) and Object.hashCode() in order to allow the filter to be used in caching scenarios — for example, in proxies generated by CGLIB.

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

    字段
    修饰符和类型
    字段
    说明
    static final ClassFilter
    Canonical instance of a ClassFilter that matches all classes.
  • 方法概要

    修饰符和类型
    方法
    说明
    boolean
    matches(Class<?> clazz)
    Should the pointcut apply to the given interface or target class?
  • 字段详细资料

    • TRUE

      static final ClassFilter TRUE
      Canonical instance of a ClassFilter that matches all classes.
  • 方法详细资料

    • matches

      boolean matches(Class<?> clazz)
      Should the pointcut apply to the given interface or target class?
      参数:
      clazz - the candidate target class
      返回:
      whether the advice should apply to the given target class