title: Create spring beans, based on a comma-separated list of classes
body: <p>Is there a way in Spring to create a collection, or array, of beans, based on a comma-separated list of classes. For example:</p>
  
  <pre><code>package mypackage;
  public class Bla {
   private Set&lt;MyBean&gt; beans;
   public void setBeans(Set&lt;MyBean&gt; beans) {
    this.beans = beans;
   }
  }
  </code></pre>
  
  <p>With the application context:</p>
  
  <pre><code>&lt;bean id="bla" class="mypackage.Bla"&gt;
   &lt;property name="beans"&gt;
    &lt;set&gt;
     &lt;bean class="mypackage.Bean1, mypackage.Bean2" /&gt;
    &lt;/set&gt;
   &lt;/property&gt;
  &lt;/bean&gt;
  </code></pre>
  
  <p>Preferably the beans are all initialized and wired from the context, leaving the code as simplistic as possible, is this possible?</p>