wood burning stoves 2.0*
The moose likes Spring and the fly likes overloaded constructor in constructor injection Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "overloaded constructor in constructor injection" Watch "overloaded constructor in constructor injection" New topic

overloaded constructor in constructor injection

siri Makkapati

Joined: May 29, 2012
Posts: 1
Hi all,

can any one please let me know For dependincy injection using constructor , if i have two overloaded constructors in class , how do you make sure that a particular version of constructor is invoked .

Reginald Blank

Joined: Mar 11, 2011
Posts: 17
In the single page Spring 3.1 docs:


The end of the following section answers your question:

It is sorta covered in the JavaRanch Style Guide.
subject: overloaded constructor in constructor injection