title: Injecting Collection of Classes with Guice
body: <p>I'm trying to inject things with Google Guice 2.0 and I have the following structure:</p>
  
  <pre><code>FooAction implements Action
  BarAction implements Action
  </code></pre>
  
  <p>I then have an ActionLibrary with the following constructor:</p>
  
  <pre><code>ActionLibrary (List&lt;Action&gt; theActions)
  </code></pre>
  
  <p>When I request an instance of ActionLibrary from Guice, I would like Guice to identify both of the registered Action classes (FooAction, BarAction) and pass them into the constructor. The motivation here being that when I add a third action BazAction, it would be as simple as registering it in the Module and it would automatically be added to the list in the constructor.</p>
  
  <p>Is this possible? </p>