title: reading a dynamic property list into a spring managed bean
body: <p>I've been searching but cannot find these steps. I hope I'm missing something obvious.</p>
  
  <p>I have a properties file with the following contents:</p>
  
  <pre><code>machines=A,B
  </code></pre>
  
  <p>I have another file like that but having a different number of members in the machines element like this:</p>
  
  <pre><code>machines=B,C,D
  </code></pre>
  
  <p>My question is how do I load this variable-length machines variable into a bean in my spring config in a generic way?</p>
  
  <p>something like this:</p>
  
  <pre><code>&lt;property name="machines" value="${machines}"/&gt;
  </code></pre>
  
  <p>where machines is an array or list in my java code. I can define it however I want if I can figure out how to do this.</p>
  
  <p>Basically I'd rather have spring do the parsing and stick each value into a list element instead of me having to write something that reads in the full machines string and do the parsing myself (with the comma delimiter) to put each value into an array or list. Is there an easy way to do this that I'm missing? </p>