title: Is there a way in Spring to autowire all dependencies of a given type?
body: <p>I'm using annotations-based wiring (ie <code>@Configurable(autowire=Autowire.BY_TYPE)</code>) for a given class, and I'd like to wire all beans of a given type into it as a list:</p>
  
  <p>application context:</p>
  
  <pre><code>&lt;beans&gt;
      &lt;bean class="com.my.class.FirstConfigurer"/&gt;
      &lt;bean class="com.my.class.SecondConfigurer"/&gt;
  &lt;/beans&gt;
  </code></pre>
  
  <p>class to autowire into:</p>
  
  <pre><code>@Configurable(autowire=Autowire.BY_TYPE) public class Target {
      ...
      public void setConfigurers(List&lt;Configurer&gt; configurers) { ... }
  }
  </code></pre>
  
  <p>All dependencies implement a common interface called <code>Configurer</code></p>
  
  <p>Is there a way to make this work to have all dependencies of a type wired together in a collection and injected where necessary, or should I define a <code>&lt;list&gt;</code> in XML or something? </p>