jQuery in Action, 3rd edition
The moose likes Spring and the fly likes What is the difference between autowire and dependancy injection Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "What is the difference between autowire and dependancy injection" Watch "What is the difference between autowire and dependancy injection" New topic
Author

What is the difference between autowire and dependancy injection

samir vasani
Ranch Hand

Joined: Nov 24, 2010
Posts: 64
Hi Expert,

Kindly let me know
What is the difference between autowire and dependancy injection
Tim Cooke
Sheriff

Joined: Mar 28, 2008
Posts: 2103
    
  96

The two things are related but not comparable. Autowiring is a Spring feature that helps you achieve Dependency Injection.


Tim Driven Development
Krishna Srinivasan
Ranch Hand

Joined: Jul 28, 2003
Posts: 1849

AutoWire is a mechanism to inject the objects to your spring classes. In simple terms, AutoWire used to achieve the DI functionality. DI is just a concept or pattern.


Krishna Srinivasan
OCAJP 7/8 Exam, 400+ OCPJP Mock Questions
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: What is the difference between autowire and dependancy injection
 
It's not a secret anymore!