--
You received this message because you are subscribed to the Google Groups "google-guice" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-guice...@googlegroups.com.
To post to this group, send email to google...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-guice.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-guice/d3e36ad3-c49b-4cbb-9640-6527877491bd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-guice/CAJEBNUeK-Ls%3DXZgP-h3gvg0KCGEuK%3Dp4ZTCtKBrThNHprGUT8w%40mail.gmail.com.
The reason for the lack of feature is because it would make code using it harder to understand. There's a 1:1 ratio right now with bind statements (or @Provides methods) and injectable types right now. That's relaxed to 0:1 for just-in-time bindings (so if you don't see a bind statement for a type, it must be a just-in-time binding). Allowing 1:many would make understanding what is being injected much harder. Guice is already confusing enough... no need to add more features that complicate the basic injection model even more.
TypeListeners are somewhat different because they require using different annotations. The rules for @Inject stay the same, but Guice can be leveraged to supply data to other annotations.
sam
To view this discussion on the web visit https://groups.google.com/d/msgid/google-guice/CABrJHW1Et3stENU-zq1CW7wEW1WE9WcxFbeBwB2dbxj3jOzTOA%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-guice/96cbe006-2f8d-4855-ad96-a50c3f69dac7%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-guice/96cbe006-2f8d-4855-ad96-a50c3f69dac7%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-guice/CABrJHW2r5_0Hb%3DZERGPqsMYFDjsov4xpF%3DWpoyeXBESjYuT7gg%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-guice/CAJEBNUeZVmS%3DtJtbiMfMTUKmiTw-urF9hZj-EYu33YRhfUnOOA%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-guice/CABrJHW0-6F%3D_a3XGybD4AxCNWBD8G9F5%3Dcicd6xXwBdPwWDqGw%40mail.gmail.com.
What I need is a n:1 binding without needing to write out n lines of bind operation - as is the case right now.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-guice/CABrJHW0-6F%3D_a3XGybD4AxCNWBD8G9F5%3Dcicd6xXwBdPwWDqGw%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-guice/CAHNex98pseThLaMK8H%3D2tW_vRowCFrKZ1WGw4Xr-r7_r7DF3RQ%40mail.gmail.com.