<bean id="test" class="foo.Bar">
<property name="baz" ref="&lfb"/>
</bean>
<bean id="lfb" class="org.springframework.beans.factory.config.ListFactoryBean">
<property name="sourceList">
<list>
<value>foo</value>
<value>bar</value>
</list>
</property>
</bean>
This feature of spring is slightly obscure though, so it's certainly not an "M1" item (more like "nice to have in Selena Final").
Here's code that shows invalid warning:
Note that the dependency is of type FactoryBean, not java.util.Set (the factory product type).
Error shown is "Cannot resolve bean &someFactory". However, at runtime the configuration parses and runs as expected.