protected Object invoke ( Method method , Object [ ] arguments ) throws InvocationTargetException , IllegalAccessException { logger . trace ( "Lookup for call {}" , method ) ; Object bean = spring . getBean ( beanType ) ; try { return method . invoke ( bean , arguments ) ; } catch ( IllegalArgumentException e ) { StringBuilder msg = new StringBuilder ( method . toGenericString ( ) ) ; msg . append ( " invoked with incompatible arguments:" ) ; for ( Object a : arguments ) { msg . append ( ' ' ) ; if ( a == null ) msg . append ( "null" ) ; else msg . append ( a . getClass ( ) . getName ( ) ) ; } logger . error ( msg . toString ( ) ) ; throw e ; } }
Gets the bean invocation return value .