Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Dependency Injection for Java EE

 
fulton wilcox
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I was doing some reading on Java and I stumbled upon Dependency Injection. Can anyone give me an explanation for its purpose? Preferably in an easier way to understand.

edit: I have found several links to DI on StackOverflow and reddit. It seems like I already follow a format like this, but my understanding of it is unclear
http://stackoverflow.com/questions/3334578/what-is-dependency-injection
http://en.wikipedia.org/wiki/Dependency_injection
http://stackoverflow.com/questions/130794/what-is-dependency-injection
http://stefanoricciardi.com/2011/11/08/dependency-injection-for-dummies/

Help would be appreciataed :-)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic