File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes Dependency-Injection Implementation. Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Reply Bookmark "Dependency-Injection Implementation." Watch "Dependency-Injection Implementation." New topic
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Dependency-Injection Implementation.
 
Similar Threads
Defination of Spring wiring
Pluggable Components
difference between Dependency Injection (DI) & Inversion of Control (IOC)
Inversion of control
passing beans..