@ Override public Object invoke ( Object self , Method thisMethod , Method proceed , Object [ ] args ) throws Throwable { // Get an instance of the implementing class via Guice final Object instance = registry . getInjector ( ) . getInstance ( clazz ) ; return thisMethod . invoke ( instance , args ) ; }
A MethodHandler that proxies the Method invocation through to a Guice - acquired instance