Updates:
        Status: WontFix

Comment #2 on issue 558 by sberlin: Support optional in JSR 330
http://code.google.com/p/google-guice/issues/detail?id=558

As Max said, if you want optional injection, use guice's @Inject. It isn't part of the JSR330 spec, there's no real reason to hack it in. javax.inject.Inject & com.google.inject.Inject can co-exist peacefully together, so you can use j.i.Inject most of the time & c.g.i.Inject when you need it to be optional.

(Note that there's some minor differences between c.g.i.Inject & j.i.Inject, because the JSR330 is stronger than Guice's requirements. See http://code.google.com/p/google-guice/wiki/JSR330 for details.)

--
You received this message because you are subscribed to the Google Groups 
"google-guice-dev" group.
To post to this group, send email to google-guice-...@googlegroups.com.
To unsubscribe from this group, send email to 
google-guice-dev+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-guice-dev?hl=en.

Reply via email to