Twelve Best Practices For Spring XML Configurations
Subject:   Constructor args vs properties
Date:   2008-07-14 07:37:28
From:   Benoit Sanchez
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.

1 to 1 of 1
  1. Constructor args vs properties
    2009-01-18 21:18:42  Me [View]

1 to 1 of 1