title: Spring Autowiring of Parameterized Collection
body: <p>Hello everyone and thanks for the help in advance.</p>
  
  <p>I am having a problem where Spring cannot autowire a parametirized member variable of type ArrayBlockingQueue.</p>
  
  <p>Here is the java code:</p>
  
  <pre><code>@Controller
  public class SomeController
  {
      @Autowired
      private ArrayBlockingQueue&lt;SomeCustomType&gt; myQueue;
  }
  </code></pre>
  
  <p>and in the spring configuration xml:</p>
  
  <pre><code>&lt;bean id="myQueue" class="java.util.concurrent.ArrayBlockingQueue"&gt;
      &lt;constructor-arg value="10"/&gt;
  &lt;/bean&gt;
  </code></pre>
  
  <p>Specifying the type (SomeCustomType) for the ArrayBlockingQueue seems to confuse spring which fails to find a match and does not perform the autowiring.</p>
  
  <p>Any ideas on how to get this to work? I know I can create my own wrapper class(around ArrayBlockingQueue) that is not parametirized but I would rather not if there is a better way to go about solving this.</p>