||Twelve Best Practices For Spring XML Configurations|
|Subject:||Constructor args vs properties|
I believe that defining beans via constructor args is far less powerful than property injection.
The main reason is circular reference between beans. Suppose A must know B and B must know A, how could you do with constructors ?!
I think constructor args should be avoided for this reason.
Showing messages 1 through 1 of 1.
Constructor args vs properties
2009-01-18 21:18:42 Me [View]