Package org.jboss.resteasy.annotations

Examples of org.jboss.resteasy.annotations.Decorator.target()


      if (annotations != null)
      {
         for (Annotation annotation : annotations)
         {
            Decorator decorator = annotation.annotationType().getAnnotation(Decorator.class);
            if (decorator != null && targetClass.isAssignableFrom(decorator.target()))
            {
               meta.put(annotation.annotationType(), annotation);
            }
         }
      }
View Full Code Here


  private <T> void registerDecorators(Class<T> targetClass, HashMap<Class<?>, Annotation> meta, Annotation[] annotations) {
     for (Annotation annotation : annotations)
     {
       Decorator decorator = annotation.annotationType().getAnnotation(Decorator.class);
       if (decorator != null && targetClass.isAssignableFrom(decorator.target()))
       {
         meta.put(annotation.annotationType(), annotation);
       }
     }
  }
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.