title: Spring comma separated list of bean references
body: <p>In Spring, is it possible to feed a comma separated list of bean references into another bean, ideally without any custom property editors. This list comes from a placeholder that I have no control over.</p>
  
  <p>For example (does not work):</p>
  
  <pre><code>&lt;bean id="bean1" class="java.lang.Integer /&gt;
  &lt;bean id="bean2" class="java.lang.Integer /&gt;
  
  &lt;bean class="customclass"&gt;
    &lt;constructor-arg&gt;&lt;ref bean="bean1,bean2" /&gt;&lt;/constructor-arg&gt;
  &lt;/bean&gt;
  </code></pre>
  
  <p>Which would be identical to:</p>
  
  <pre><code>&lt;bean id="bean1" class="java.lang.Integer /&gt;
  &lt;bean id="bean2" class="java.lang.Integer /&gt;
  
  &lt;bean class="customclass"&gt;
    &lt;constructor-arg&gt;
      &lt;list&gt;
        &lt;ref bean="bean1"/&gt;
        &lt;ref bean="bean2"/&gt;
      &lt;/list&gt;
    &lt;/constructor-arg&gt;
  &lt;/bean&gt;
  </code></pre>