--
You received this message because you are subscribed to the Google Groups "google-guice" group.
To post to this group, send email to google...@googlegroups.com.
To unsubscribe from this group, send email to google-guice...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-guice?hl=en.
To unsubscribe from this group, send email to google-guice...@googlegroups.com.
To unsubscribe from this group, send email to google-guice...@googlegroups.com.
To unsubscribe from this group, send email to google-guice...@googlegroups.com.
-bp
> To unsubscribe from this group, send email to google-guice...@googlegroups.com.
To unsubscribe from this group, send email to google-guice...@googlegroups.com.
hmm no. I delete the "annotatedWith(ToDot.class)". so I don't use
anotation,
My main class look like that :
public static void main(String[] args) {
Injector demoInjector = Guice.createInjector(new DemoModule());
Injector clientInjector = Guice.createInjector(new ClientModule());
ISimpleGraph demo = demoInjector.getInstance(ISimpleGraph.class);
IClient client = clientInjector.getInstance(IClient.class);
To unsubscribe from this group, send email to google-guice...@googlegroups.com.
Maybe I'm missing something obvious, but if the client is deciding
which implementation to get, then why not just ask for it:
IDrawGraphService drawTextService =
drawGraphInjector.getInstance(DrawTextService.class)
Seems less convoluted and safer than MapBinder.
Moandji