Comment #2 on issue 658 by [email protected]: Make it clear how to do an optional Injector.getInstance
http://code.google.com/p/google-guice/issues/detail?id=658

Your best workaround is to use Injector.getExistingBinding, and if it returns null, it wasn't bound.

Is there a reason you suggest this for clients, while Guice does something different internally (catch the ConfigurationException)?

--
You received this message because you are subscribed to the Google Groups 
"google-guice-dev" 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-dev?hl=en.

Reply via email to