Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

What is dependency?

 
Akhilesh Trivedi
Ranch Hand
Posts: 1599
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In context to spring, i see the term 'dependency injection' repeating everywhere. What is dependency in terms of objects? Does it mean 'has-a' relationship like being able to create an object from another or?

It is also said the 'container' pushes the dependency.

What is a container, is it the same web-container/JVM? or some other logical thing?

what is - traditional 'pull' dependency ?

 
Andi Eska
Greenhorn
Posts: 14
BSD Eclipse IDE VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is a nice article from Martin Fowers about Inversion of Control Containers and the Dependency Injection pattern
which will hopefully answer all your questions
 
Akhilesh Trivedi
Ranch Hand
Posts: 1599
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks. The article is worth a read.
 
Akhilesh Trivedi
Ranch Hand
Posts: 1599
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Could not catch the 'tk' example. IOC.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic