| Author |
Dependency-Injection Implementation.
|
Anton Golovin
Ranch Hand
Joined: Jul 02, 2004
Posts: 473
|
|
|
We talk a lot about dependency injection in regard to EJB's, but does anyone have a good idea of how DI is implemented?
|
Anton Golovin<br /><i>anton.golovin@gmail.com</i><br />SCJP, SCJD, SCBCD, SCWCD
|
 |
Cameron Wallace McKenzie
author and cow tipper
Saloon Keeper
Joined: Aug 26, 2006
Posts: 4967
|
|
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! -Cameron McKenzie
|
Author of Hibernate Made Easy, What is WebSphere???, JSF 2.0 Made Easy and the SCJA Certification Guides
|
 |
 |
|
|
subject: Dependency-Injection Implementation.
|
|
|