public static < X > List < InjectionPoint > createInjectionPoints ( AnnotatedMethod < X > method , Bean < ? > declaringBean , BeanManager beanManager ) { List < InjectionPoint > injectionPoints = new ArrayList < InjectionPoint > ( ) ; for ( AnnotatedParameter < X > parameter : method . getParameters ( ) ) { InjectionPoint injectionPoint = new ImmutableInjectionPoint ( parameter , beanManager , declaringBean , false , false ) ; injectionPoints . add ( injectionPoint ) ; } return injectionPoints ; }
Given a method and the bean on which the method is declared create a collection of injection points representing the parameters of the method .