Examples of classHasMethodAnnotatedWith()


Examples of org.jboss.deployers.spi.annotations.AnnotationEnvironment.classHasMethodAnnotatedWith()

            classes.add(elt.getOwner());
      }
      for(Class<? extends Annotation> annotation : annotationOnMethod)
      {
         Class<Annotation> annotationClass = (Class<Annotation>)annotation;
         Set<Element<Annotation, Method>> elements = env.classHasMethodAnnotatedWith(annotationClass);
         for(Element<Annotation, Method> elt : elements)
            classes.add(elt.getOwner());
      }
      for(Class<? extends Annotation> annotation : annotationOnField)
      {
View Full Code Here

Examples of org.jboss.deployers.spi.annotations.AnnotationEnvironment.classHasMethodAnnotatedWith()

      if (trace)
         log.trace("Creator: " + creatorInfo + ", method annotations: " + methodAnnotations);
      for(Class<? extends Annotation> annotation : methodAnnotations)
      {
         Class<Annotation> annotationClass = (Class<Annotation>)annotation;
         Set<Element<Annotation, Method>> elements = env.classHasMethodAnnotatedWith(annotationClass);
         for(Element<Annotation, Method> elt : elements)
            classes.add(elt.getOwner());
      }

      Collection<Class<? extends Annotation>> fieldAnnotations = context.getFieldAnnotations();
View Full Code Here

Examples of org.jboss.deployers.spi.annotations.AnnotationEnvironment.classHasMethodAnnotatedWith()

      Set classes = env.classIsAnnotatedWith("org.jboss.test.deployers.vfs.annotations.support.Marked");
      assertNotNull(classes);
      assertEquals(onClass, classes.size());

      Set methods = env.classHasMethodAnnotatedWith("org.jboss.test.deployers.vfs.annotations.support.Marked");
      assertNotNull(methods);
      assertEquals(onMethod, methods.size());

      Set fields = env.classHasFieldAnnotatedWith("org.jboss.test.deployers.vfs.annotations.support.Marked");
      assertNotNull(fields);
View Full Code Here

Examples of org.jboss.deployers.spi.annotations.AnnotationEnvironment.classHasMethodAnnotatedWith()

         ta = ef.getAnnotation();
         assertNotNull(ta);
         assertEquals("field", getValue(ta));
         assertInstanceOf(ef.getAnnotatedElement(), Field.class, false);

         Element<TestAnnotation, Method> em = getSingleton(env.classHasMethodAnnotatedWith(taClass));
         ta = em.getAnnotation();
         assertNotNull(ta);
         assertEquals("method", getValue(ta));
         assertInstanceOf(em.getAnnotatedElement(), Method.class, false);
View Full Code Here

Examples of org.jboss.deployers.spi.annotations.AnnotationEnvironment.classHasMethodAnnotatedWith()

         ta = ef.getAnnotation();
         assertNotNull(ta);
         assertEquals("field", getValue(ta));
         assertInstanceOf(ef.getAnnotatedElement(), Field.class, false);

         Element<Annotation, Method> em = getSingleton(env.classHasMethodAnnotatedWith(annotationName));
         ta = em.getAnnotation();
         assertNotNull(ta);
         assertEquals("method", getValue(ta));
         assertInstanceOf(em.getAnnotatedElement(), Method.class, false);
View Full Code Here

Examples of org.jboss.scanning.annotations.spi.AnnotationIndex.classHasMethodAnnotatedWith()

   {
      AnnotationIndex annotationRepository = unit.getAttachment(AnnotationIndex.class);

      if (annotationRepository != null)
      {
         return annotationRepository.classHasMethodAnnotatedWith(ExcludeDefaultInterceptors.class);

      }
      else
      {
         // no scanning info, ignore those methods
View Full Code Here

Examples of org.jboss.scanning.annotations.spi.AnnotationIndex.classHasMethodAnnotatedWith()

   {
      AnnotationIndex annotationRepository = unit.getAttachment(AnnotationIndex.class);

      if (annotationRepository != null)
      {
         return annotationRepository.classHasMethodAnnotatedWith(ExcludeClassInterceptors.class);
      }
      else
      {
         // no scanning info, ignore those methods
         return Collections.emptySet();
View Full Code Here

Examples of org.jboss.scanning.annotations.spi.AnnotationIndex.classHasMethodAnnotatedWith()

            return false;
        
         Set<Element<Weld, ?>> result = new HashSet<Element<Weld, ?>>(1);
         result.addAll(index.classHasConstructorAnnotatedWith(Weld.class));
         result.addAll(index.classHasFieldAnnotatedWith(Weld.class));
         result.addAll(index.classHasMethodAnnotatedWith(Weld.class));
        
         if (result.size() == 0)
         {
            classNames = Collections.emptySet();
         }
View Full Code Here

Examples of org.jboss.scanning.annotations.spi.AnnotationRepository.classHasMethodAnnotatedWith()

      if (trace)
         log.trace("Creator: " + creatorInfo + ", method annotations: " + methodAnnotations);
      for(Class<? extends Annotation> annotation : methodAnnotations)
      {
         Class<Annotation> annotationClass = (Class<Annotation>)annotation;
         Set<Element<Annotation, Method>> elements = env.classHasMethodAnnotatedWith(annotationClass);
         for(Element<Annotation, Method> elt : elements)
            classes.add(elt.getOwner());
      }

      Collection<Class<? extends Annotation>> fieldAnnotations = context.getFieldAnnotations();
View Full Code Here

Examples of org.jboss.scanning.annotations.spi.AnnotationRepository.classHasMethodAnnotatedWith()

            classes.add(elt.getOwner());
      }
      for(Class<? extends Annotation> annotation : annotationOnMethod)
      {
         Class<Annotation> annotationClass = (Class<Annotation>)annotation;
         Set<Element<Annotation, Method>> elements = env.classHasMethodAnnotatedWith(annotationClass);
         for(Element<Annotation, Method> elt : elements)
            classes.add(elt.getOwner());
      }
      for(Class<? extends Annotation> annotation : annotationOnField)
      {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.