• Post Reply Bookmark Topic Watch Topic
  • New Topic

Dependency-Injection Implementation.  RSS feed

 
Anton Golovin
Ranch Hand
Posts: 531
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We talk a lot about dependency injection in regard to EJB's, but does anyone have a good idea of how DI is implemented?
 
Cameron Wallace McKenzie
author and cow tipper
Saloon Keeper
Posts: 4968
1
Hibernate Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!