On Tuesday, July 20, 2010, Jerem's <[email protected]>
> @ToDot
> IDrawGraphService drawDotService =
> drawGraphInjector.getInstance(IDrawGraphService.class);
>
> @ToText
> IDrawGraphService drawTextService =
> drawGraphInjector.getInstance(IDrawGraphService.class);
>

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

-- 
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