Updates:
        Status: WontFix

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

It's not obvious basically because using getInstance is a "last resort" kind of thing, and doesn't expose optional-ity. Your best workaround is to use Injector.getExistingBinding, and if it returns null, it wasn't bound. (Then call getProvider().get().) Binding annotations with non-constant members sound incredibly scary though!

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