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