ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.

advertisement

AddThis Social Bookmark Button
Article:
  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 to 1 of 1