@ Internal @ SuppressWarnings ( "WeakerAccess" ) protected void injectBeanMethod ( BeanResolutionContext resolutionContext , DefaultBeanContext context , int methodIndex , Object bean ) { MethodInjectionPoint methodInjectionPoint = methodInjectionPoints . get ( methodIndex ) ; Argument [ ] methodArgumentTypes = methodInjectionPoint . getArguments ( ) ; Object [ ] methodArgs = new Object [ methodArgumentTypes . length ] ; for ( int i = 0 ; i < methodArgumentTypes . length ; i ++ ) { methodArgs [ i ] = getBeanForMethodArgument ( resolutionContext , context , methodIndex , i ) ; } try { methodInjectionPoint . invoke ( bean , methodArgs ) ; } catch ( Throwable e ) { throw new BeanInstantiationException ( this , e ) ; } }
Inject a bean method that requires reflection .