Status: New
Owner: ----

New issue 607 by [email protected]: Inject a iterable of bindings of a given type
http://code.google.com/p/google-guice/issues/detail?id=607

Actually it is possible to bind instances of a given type to another subtype and also to receive this instances in another class constructor.

I'm facing a scenario where should be very useful to receive a collection of bindings of a given type. The scenario I'm facing is this: there's a few modules, each one binding one or more Callable<Void> child classes instances. One of this modules gonna call all Callables. So, should be great to me to bind and inject something like Iterable<Callable<Void>>.

If you guys think this should be interesting to have on guice, I appreciate to have this implemented. If there's any other way to have this done on actual Guice implementation, I appreciate also to have any link explaining how to to this. I already searched before creating this ticket.

And if there's no way to do this and this scenario wouldn't be interesting to be implemented on Guice, that's fine either! :-)

Thanks a lot!



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