Two Laptop Bag
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes Dependency-Injection Implementation. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "Dependency-Injection Implementation." Watch "Dependency-Injection Implementation." New topic

Dependency-Injection Implementation.

Anton Golovin
Ranch Hand

Joined: Jul 02, 2004
Posts: 476
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 ( SCJP, SCJD, SCBCD, SCWCD, OCEJWSD, SCEA/OCMJEA [JEE certs from Sun/Oracle]
Cameron Wallace McKenzie
author and cow tipper
Saloon Keeper

Joined: Aug 26, 2006
Posts: 4968

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
I agree. Here's the link:
subject: Dependency-Injection Implementation.
jQuery in Action, 3rd edition