I know that you can get a reference to a factorybean instance when defining beans with XML ( Spring ). eg:.
<property name="factoryBean" ref="&theFactoryBean" />
But can this be done with annotations? (possibly with @Autowired and @Qualifer?)
Do you need to annotate the plant itself so that it can be detected using Spring component scan?
Joep source share