title: Define a set outside of a bean in spring ioc
body: <p>I understand that a set can be defined as:</p>
  
  <pre><code>&lt;bean id="toolbox" class="tools.Toolbox"&gt;
      &lt;property name="tools"&gt;
          &lt;set&gt;
              &lt;ref local="foo" /&gt;
              &lt;ref local="bar" /&gt;
          &lt;/set&gt;
      &lt;/property&gt;
  &lt;/bean&gt;
  </code></pre>
  
  <p>but I can't find anything in the documentation to allow me to define the set first, for example:</p>
  
  <pre><code>&lt;set id="myTools"&gt;
      &lt;ref local="foo" /&gt;
      &lt;ref local="bar" /&gt;
  &lt;/set&gt;
  &lt;bean id="toolbox" class="tools.Toolbox"&gt;
      &lt;property name="tools" ref="myTools"/&gt;
  &lt;/bean&gt;
  </code></pre>
  
  <p>Does anyone know if this works or if not how it could be accomplished?</p>