File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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: 18
In the single page Spring 3.1 docs:

The end of the following section answers your question:
I agree. Here's the link:
subject: overloaded constructor in constructor injection
It's not a secret anymore!