类 AnnotationMatchingPointcut
java.lang.Object
infra.aop.support.annotation.AnnotationMatchingPointcut
- 所有已实现的接口:
Pointcut
- 从以下版本开始:
- 3.0
- 作者:
- Juergen Hoeller, Sam Brannen, TODAY 2021/2/2 13:00
- 另请参阅:
-
嵌套类概要
嵌套类修饰符和类型类说明private static final recordClassFilterthat delegates toAnnotationUtils.isCandidateClass(java.lang.Class<?>, java.util.Collection<java.lang.Class<? extends java.lang.annotation.Annotation>>)for filtering classes whose methods are not worth searching to begin with.从接口继承的嵌套类/接口 infra.aop.Pointcut
Pointcut.GetterPointcut, Pointcut.SetterPointcut -
字段概要
字段 -
构造器概要
构造器构造器说明AnnotationMatchingPointcut(Class<? extends Annotation> classAnnotationType) Create a new AnnotationMatchingPointcut for the given annotation type.AnnotationMatchingPointcut(Class<? extends Annotation> classAnnotationType, boolean checkInherited) Create a new AnnotationMatchingPointcut for the given annotation type.AnnotationMatchingPointcut(Class<? extends Annotation> classAnnotationType, Class<? extends Annotation> methodAnnotationType) Create a new AnnotationMatchingPointcut for the given annotation types.AnnotationMatchingPointcut(Class<? extends Annotation> classAnnotationType, Class<? extends Annotation> methodAnnotationType, boolean checkInherited) Create a new AnnotationMatchingPointcut for the given annotation types. -
方法概要
修饰符和类型方法说明booleanstatic AnnotationMatchingPointcutforClassAnnotation(Class<? extends Annotation> annotationType) Factory method for an AnnotationMatchingPointcut that matches for the specified annotation at the class level.static AnnotationMatchingPointcutforMethodAnnotation(Class<? extends Annotation> annotationType) Factory method for an AnnotationMatchingPointcut that matches for the specified annotation at the method level.Return the ClassFilter for this pointcut.Return the MethodMatcher for this pointcut.inthashCode()toString()
-
字段详细资料
-
classFilter
-
methodMatcher
-
-
构造器详细资料
-
AnnotationMatchingPointcut
Create a new AnnotationMatchingPointcut for the given annotation type.- 参数:
classAnnotationType- the annotation type to look for at the class level
-
AnnotationMatchingPointcut
public AnnotationMatchingPointcut(Class<? extends Annotation> classAnnotationType, boolean checkInherited) Create a new AnnotationMatchingPointcut for the given annotation type.- 参数:
classAnnotationType- the annotation type to look for at the class levelcheckInherited- whether to also check the superclasses and interfaces as well as meta-annotations for the annotation type- 另请参阅:
-
AnnotationMatchingPointcut
public AnnotationMatchingPointcut(Class<? extends Annotation> classAnnotationType, Class<? extends Annotation> methodAnnotationType) Create a new AnnotationMatchingPointcut for the given annotation types.- 参数:
classAnnotationType- the annotation type to look for at the class level (can benull)methodAnnotationType- the annotation type to look for at the method level (can benull)
-
AnnotationMatchingPointcut
public AnnotationMatchingPointcut(Class<? extends Annotation> classAnnotationType, Class<? extends Annotation> methodAnnotationType, boolean checkInherited) Create a new AnnotationMatchingPointcut for the given annotation types.- 参数:
classAnnotationType- the annotation type to look for at the class level (can benull)methodAnnotationType- the annotation type to look for at the method level (can benull)checkInherited- whether to also check the superclasses and interfaces as well as meta-annotations for the annotation type- 另请参阅:
-
-
方法详细资料
-
getClassFilter
从接口复制的说明:PointcutReturn the ClassFilter for this pointcut.- 指定者:
getClassFilter在接口中Pointcut- 返回:
- the ClassFilter (never
null)
-
getMethodMatcher
从接口复制的说明:PointcutReturn the MethodMatcher for this pointcut.- 指定者:
getMethodMatcher在接口中Pointcut- 返回:
- the MethodMatcher (never
null)
-
equals
-
hashCode
public int hashCode() -
toString
-
forClassAnnotation
public static AnnotationMatchingPointcut forClassAnnotation(Class<? extends Annotation> annotationType) Factory method for an AnnotationMatchingPointcut that matches for the specified annotation at the class level.- 参数:
annotationType- the annotation type to look for at the class level- 返回:
- the corresponding AnnotationMatchingPointcut
-
forMethodAnnotation
public static AnnotationMatchingPointcut forMethodAnnotation(Class<? extends Annotation> annotationType) Factory method for an AnnotationMatchingPointcut that matches for the specified annotation at the method level.- 参数:
annotationType- the annotation type to look for at the method level- 返回:
- the corresponding AnnotationMatchingPointcut
-