Let me add that if I move code around as follows, I get this error:

Oct 15, 2009 11:00:58 AM com.google.inject.MessageProcessor visit
INFO: An exception was caught and reported. Message:
java.lang.ClassNotFoundException:
com.google.inject.internal.cglib.reflect.FastClass
com.google.inject.internal.ComputationException:
com.google.inject.internal.ComputationException:
com.google.inject.internal.cglib.core.CodeGenerationException:
java.lang.reflect.InvocationTargetException-->null


public class WrapperModule extends AbstractModule {

   protected void configure() {

       final AbstractModule rootModule =
               new RootModule();
       final Injector injector = Guice.createInjector( rootModule);

       //error occurs after this line
       bind(iRobot.class).toProvider(
>
> new Provider<iRobot>() {
>            public iRobot get() {
>                return injector.getInstance
> (Robot.class);
>            }
>        }).in(Scopes.SINGLETON);

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"google-guice" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/google-guice?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to