aspose file tools*
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


Win a copy of Java 8 in Action this week in the Java 8 forum!
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: 1511
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: 1511
Thanks. The article is worth a read.
Akhilesh Trivedi
Ranch Hand

Joined: Jun 22, 2005
Posts: 1511
Could not catch the 'tk' example. IOC.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: What is dependency?
 
Similar Threads
FBN SCEA Part II BMP VS CMP
how to map dynamic web project name to root directory
compile with dependecies
Real Usage of java Reflection
Dependency Injection not working?