类 AnnotationMatchingPointcut

    • 构造器详细资料

      • AnnotationMatchingPointcut

        public AnnotationMatchingPointcut​(Class<? extends Annotation> classAnnotationType)
        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 level
        checkInherited - whether to also check the superclasses and interfaces as well as meta-annotations for the annotation type
        另请参阅:
        AnnotationClassFilter(Class, boolean)
      • 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 be null)
        methodAnnotationType - the annotation type to look for at the method level (can be null)