
Originally Posted by
jbetancourt
In autowiring, the context finds what it should use. With this approach, you constrain it. pros are:
less verbose declarations, use of auto-wiring (kindof).
Cons are many. what if you have multiple fields of same type, and you list a bunch of references and these too have multiple types that are applicable, which should go to which field?
Maybe instead of just
<property refIds="classA,classB,classC"/>
it could be
<property refids="fld1=classA,fld2=classB,fld3=classC"/>
This removes the autowiring.