private void visit(AnnotatedElement element, ClassContext context)
   {

      List<AnnotationHandler<Annotation>> elementHandlers = new ArrayList<AnnotationHandler<Annotation>>();

      // check if any of the handlers is responsible
      for (AnnotationHandler<Annotation> handler : handlerList)
      {

         // each annotation on the element may be interesting for us
         for (Annotation annotation : element.getAnnotations())
         {
            if (handler.handles().equals(annotation.annotationType()))
            {
               elementHandlers.add(handler);
            }
         }

      }

      if (!elementHandlers.isEmpty())
      {

         if (log.isTraceEnabled())
         {
            log.trace("Executing handler chain on " + element + ": " + elementHandlers);
         }

         // execute the handler chain
         new HandlerChainImpl(context, element, elementHandlers).proceed();

      }
   }
private void visit(AnnotatedElement element, ClassContext context)
   {

      List<AnnotationHandler<Annotation>> elementHandlers = new ArrayList<AnnotationHandler<Annotation>>();

      
      for (AnnotationHandler<Annotation> handler : handlerList)
      {

         
         for (Annotation annotation : element.getAnnotations())
         {
            if (handler.handles().equals(annotation.annotationType()))
            {
               elementHandlers.add(handler);
            }
         }

      }

      if (!elementHandlers.isEmpty())
      {

         if (log.isTraceEnabled())
         {
            log.trace("Executing handler chain on " + element + ": " + elementHandlers);
         }

         
         new HandlerChainImpl(context, element, elementHandlers).proceed();

      }
   }
private void visit ( AnnotatedElement element , ClassContext context ) { List < AnnotationHandler < Annotation >> elementHandlers = new ArrayList < AnnotationHandler < Annotation > > ( ) ; // check if any of the handlers is responsible for ( AnnotationHandler < Annotation > handler : handlerList ) { // each annotation on the element may be interesting for us for ( Annotation annotation : element . getAnnotations ( ) ) { if ( handler . handles ( ) . equals ( annotation . annotationType ( ) ) ) { elementHandlers . add ( handler ) ; } } } if ( ! elementHandlers . isEmpty ( ) ) { if ( log . isTraceEnabled ( ) ) { log . trace ( "Executing handler chain on " + element + ": " + elementHandlers ) ; } // execute the handler chain new HandlerChainImpl ( context , element , elementHandlers ) . proceed ( ) ; } }
Process one {@link AnnotatedElement} of the class.
Process one {