title: Best way to refactor this in Spring?
body: <pre><code>private final ExecutorService executorParsers = Executors.newFixedThreadPool(10);
  
  public void parse(List&lt;MyObjInt&gt; objs) {
     //... bunch of elided stuff ....
  
     CompletionService&lt;AsupParseObj&gt; parserService = new ExecutorCompletionService&lt;AsupParseObj&gt;(executorParsers);
  
     for (final AsupStoreObj obj : objs) {
        parserService.submit(new ParseThread(obj));
     }
  }
  </code></pre>
  
  <p>I would like to DI the "ParseThread" but surely there has to be a better way to do this than burying a call to getBean on a prototype scoped bean and as I am new to Spring I figured I would ask...</p>