frjaeger220 / google-guice

Automatically exported from code.google.com/p/google-guice
Apache License 2.0
0 stars 0 forks source link

Can't bind annotated Injector #433

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
In GuiceBerry, it's common for tests to want to access the server's injector. 
For 
that, I want to be able to do something like:

bind(Injector.class).annotatedWith(ServerSide.class).toInstance(serverInjector);

Unfortunately, Guice currently arbitrarily forbids binding an Injector, even if 
annotated.

Original issue reported on code.google.com by zorze...@gmail.com on 30 Sep 2009 at 4:29

GoogleCodeExporter commented 9 years ago
This was a precaution that I think is fine to take out.

Original comment by crazybob...@gmail.com on 30 Sep 2009 at 4:42