类 AnnotationMatchingPointcut
java.lang.Object
cn.taketoday.aop.support.annotation.AnnotationMatchingPointcut
- 所有已实现的接口:
Pointcut
- 从以下版本开始:
- 3.0
- 作者:
- Juergen Hoeller, Sam Brannen, TODAY 2021/2/2 13:00
- 另请参阅:
-
字段概要
-
构造器概要
构造器构造器说明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()
-
构造器详细资料
-
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
-