A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
EJB Certification (SCBCD/OCPJBCD)
Joined: Jul 02, 2004
Sep 08, 2008 23:56:00
We talk a lot about dependency injection in regard to
's, but does anyone have a good idea of how DI is implemented?
Anton Golovin (firstname.lastname@example.org) SCJP, SCJD, SCBCD, SCWCD, OCEJWSD, SCEA/OCMJEA [JEE certs from Sun/Oracle]
Cameron Wallace McKenzie
author and cow tipper
Joined: Aug 26, 2006
Sep 09, 2008 10:33:00
The container finds a matching resource with the same name. I would imagine the container does the lookup and other standard coding we'd see in a Service Locator, and poof, you have your object!
I agree. Here's the link:
subject: Dependency-Injection Implementation.
Defination of Spring wiring
Inversion of control
difference between Dependency Injection (DI) & Inversion of Control (IOC)
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014