private < A extends Annotation > void processMemberAnnotations ( int processorIndex , InjectionProcessorProvider < A , ? > provider , Member [ ] members , AnnotatedElement [ ] annotatedMembers ) throws InjectionException { Class < A > annClass = provider . getAnnotationClass ( ) ; if ( annClass != null ) { for ( int i = 0 ; i < members . length ; i ++ ) { A ann = annotatedMembers [ i ] . getAnnotation ( annClass ) ; if ( ann != null ) { Member member = members [ i ] ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) Tr . debug ( tc , "found member annotation " + toStringSecure ( ann ) + " on " + member ) ; InjectionProcessor < A , ? > processor = getProcessor ( processorIndex , provider ) ; addOrMergeInjectionBinding ( processorIndex , processor , member . getDeclaringClass ( ) , member , ann ) ; } } } }
Process annotations on fields and methods .