类 AnnotationClassFilter

java.lang.Object
infra.aop.support.annotation.AnnotationClassFilter
所有已实现的接口:
ClassFilter

public class AnnotationClassFilter extends Object implements ClassFilter
Simple ClassFilter that looks for a specific Java 5 annotation being present on a class.
从以下版本开始:
3.0
作者:
Juergen Hoeller, TODAY 2021/2/2 13:00
另请参阅:
  • 字段详细资料

    • checkInherited

      private final boolean checkInherited
    • annotationType

      private final Class<? extends Annotation> annotationType
  • 构造器详细资料

    • AnnotationClassFilter

      public AnnotationClassFilter(Class<? extends Annotation> annotationType)
      Create a new AnnotationClassFilter for the given annotation type.
      参数:
      annotationType - the annotation type to look for
    • AnnotationClassFilter

      public AnnotationClassFilter(Class<? extends Annotation> annotationType, boolean checkInherited)
      Create a new AnnotationClassFilter for the given annotation type.
      参数:
      annotationType - the annotation type to look for
      checkInherited - whether to also check the superclasses and interfaces as well as meta-annotations for the annotation type (i.e. whether to use AnnotatedElementUtils.hasAnnotation(AnnotatedElement, Class) semantics instead of standard Java Class.isAnnotationPresent(java.lang.Class<? extends java.lang.annotation.Annotation>))
  • 方法详细资料

    • matches

      public boolean matches(Class<?> clazz)
      从接口复制的说明: ClassFilter
      Should the pointcut apply to the given interface or target class?
      指定者:
      matches 在接口中 ClassFilter
      参数:
      clazz - the candidate target class
      返回:
      whether the advice should apply to the given target class
    • equals

      public boolean equals(Object other)
      覆盖:
      equals 在类中 Object
    • hashCode

      public int hashCode()
      覆盖:
      hashCode 在类中 Object
    • toString

      public String toString()
      覆盖:
      toString 在类中 Object