Check out Multibinder -

http://code.google.com/docreader/#p=google-guice&s=google-guice&t=Multibindings

-d

On Jun 3, 9:14 pm, Nic <[email protected]> wrote:
> Is it possible to inject multiple instances into a contructor via an
> array or Iterator?
>
> For example I would like to inject
>
> public class Engine {
>
> @Inject
> public Engine(IRule[] rules)
> { }
> ..
> ...
>
> }
>
> And have all implementations of IRule injected.
>
> For those familar with structuremap a C# IOC container, something like
> this feature:http://structuremap.sourceforge.net/AutoWiring.htm#section5
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"google-guice" 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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to