Package org.springframework.aop.support.annotation

Examples of org.springframework.aop.support.annotation.AnnotationClassFilter


   * @param checkInherited      whether to explicitly check the superclasses and
   *                            interfaces for the annotation type as well (even if the annotation type
   *                            is not marked as inherited itself)
   */
  public MetaAnnotationMatchingPointcut(Class<? extends Annotation> classAnnotationType, boolean checkInherited) {
    this.classFilter = new AnnotationClassFilter(classAnnotationType, checkInherited);
    this.methodMatcher = MethodMatcher.TRUE;
  }
View Full Code Here


    Assert.isTrue((classAnnotationType != null || methodAnnotationType != null),
        "Either Class annotation type or Method annotation type needs to be specified (or both)");

    if (classAnnotationType != null) {
      this.classFilter = new AnnotationClassFilter(classAnnotationType);
    } else {
      this.classFilter = ClassFilter.TRUE;
    }

    if (methodAnnotationType != null) {
View Full Code Here

   * @param checkInherited      whether to explicitly check the superclasses and
   *                            interfaces for the annotation type as well (even if the annotation type
   *                            is not marked as inherited itself)
   */
  public MetaAnnotationMatchingPointcut(Class<? extends Annotation> classAnnotationType, boolean checkInherited) {
    this.classFilter = new AnnotationClassFilter(classAnnotationType, checkInherited);
    this.methodMatcher = MethodMatcher.TRUE;
  }
View Full Code Here

    Assert.isTrue((classAnnotationType != null || methodAnnotationType != null),
        "Either Class annotation type or Method annotation type needs to be specified (or both)");

    if (classAnnotationType != null) {
      this.classFilter = new AnnotationClassFilter(classAnnotationType);
    } else {
      this.classFilter = ClassFilter.TRUE;
    }

    if (methodAnnotationType != null) {
View Full Code Here

  @Bean
  @Exposed
  public PrefixingRequestMappingHandlerMapping controllerHandlerMapping() {
    PrefixingRequestMappingHandlerMapping handlerMapping =
        new PrefixingRequestMappingHandlerMapping( new AnnotationClassFilter( Controller.class, true ) );
    handlerMapping.setOrder( 0 );

    return handlerMapping;
  }
View Full Code Here

TOP

Related Classes of org.springframework.aop.support.annotation.AnnotationClassFilter

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.