This week's book giveaway is in the Agile and other Processes forum. We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line! See this thread for details.
Can anyone of you please explain Interface Injection in Spring with a simple example?
Or is there any tutorial available for this?
I searched, but unable to find for interface injection in particular.
Have a great weekend !
Thanks
Eduardo Bueno
Ranch Hand
Joined: Jun 04, 2009
Posts: 154
posted
0
A simple example:
And now you just need a reference of the SomeRepository interface which will be injected (by type, since SomeRepositoryImpl implements SomeRepository) via setter method:
Hong Anderson
Ranch Hand
Joined: Jul 05, 2005
Posts: 1936
posted
0
Spring doesn't support Interface injection and the above example about autowiring is incorrect.
Will reply more later.
SCJA 1.0, SCJP 1.4, SCWCD 1.4, SCBCD 1.3, SCJP 5.0, SCEA 5, SCBCD 5; OCUP - Fundamental, Intermediate and Advanced; IBM Certified Solution Designer - OOAD, vUML 2; SpringSource Certified Spring Professional
Manikandan Swaminathan
Ranch Hand
Joined: Aug 10, 2008
Posts: 115
posted
0
Hi Kengkaj,
Can you please post the details?
If possible please mail me the details. My mail id is graghuu@gmail.com