Tuomas Kiviaho opened SPR-5155 and commented
Annotations don't have the possibility to flag a component as 'primary' candidate (nor can they be disabled from being 'autowire-candidate'). ScannedGenericBeanDefinition could quite easily be enhanced to support the feature if it's available in metadata.
Affects: 2.5.5
Issue Links: