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


Win a copy of Groovy Fundamentals video training course this week in the Groovy forum!
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: 1860
    
  95

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: 1847

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
 
 
subject: What is the difference between autowire and dependancy injection