A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
overloaded constructor in constructor injection
Joined: May 29, 2012
May 29, 2012 22:38:07
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 .
Joined: Mar 11, 2011
May 30, 2012 04:05:20
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
WA #1.....word association
DI - Constructor injection / Setter Injection ?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014