Examples of classHasConstructorAnnotatedWith()


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

         Element<TestAnnotation, Class<?>> ecl = getSingleton(env.classIsAnnotatedWith(taClass));
         Annotation tacl = ecl.getAnnotation();
         assertNotNull(tacl);
         assertEquals("class", getValue(tacl));

         Element<TestAnnotation, Constructor<?>> ec = getSingleton(env.classHasConstructorAnnotatedWith(taClass));
         Annotation ta = ec.getAnnotation();
         assertNotNull(ta);
         assertEquals("constructor", getValue(ta));
         assertInstanceOf(ec.getAnnotatedElement(), Constructor.class, false);
View Full Code Here

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

         Element<Annotation, Class<?>> ecl = getSingleton(env.classIsAnnotatedWith(annotationName));
         Annotation tacl = ecl.getAnnotation();
         assertNotNull(tacl);
         assertEquals("class", getValue(tacl));

         Element<Annotation, Constructor<?>> ec = getSingleton(env.classHasConstructorAnnotatedWith(annotationName));
         Annotation ta = ec.getAnnotation();
         assertNotNull(ta);
         assertEquals("constructor", getValue(ta));
         assertInstanceOf(ec.getAnnotatedElement(), Constructor.class, false);
View Full Code Here

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

         AnnotationIndex index = unit.getAttachment(AnnotationIndex.class);
         if (index == null)
            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)
         {
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.