*
The moose likes Spring and the fly likes What is dependency? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "What is dependency?" Watch "What is dependency?" New topic
Author

What is dependency?

Akhilesh Trivedi
Ranch Hand

Joined: Jun 22, 2005
Posts: 1535
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 ?


Keep Smiling Always — My life is smoother when running silent. -paul
[FAQs] [Certification Guides] [The Linux Documentation Project]
Andi Eska
Greenhorn

Joined: Jun 20, 2003
Posts: 14

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

Joined: Jun 22, 2005
Posts: 1535
Thanks. The article is worth a read.
Akhilesh Trivedi
Ranch Hand

Joined: Jun 22, 2005
Posts: 1535
Could not catch the 'tk' example. IOC.
 
 
subject: What is dependency?