private void inject ( Object target , Field field ) { try { /** * Injection is actually quite a simple process. We resolve the * field into a source of instances, and ask it to generate one. */ field . set ( target , registrar . resolve ( field ) . getInstance ( ) ) ; } catch ( IllegalArgumentException | IllegalAccessException e ) { throw new IrohException ( e ) ; } }
Performs the actual instance injection .