permaculture playing cards*
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: 59
Hi Expert,

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

Joined: Mar 28, 2008
Posts: 823
    
  38

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

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
Spring Tutorials, OCAJP Mock Questions, 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
 
Similar Threads
difference between Dependency Injection (DI) & Inversion of Control (IOC)
difference between IOC and Dependency Injection
Spring DI Vs Spring Autowiring
JNDI and DI
Is not autowire a another type of dependendcy injection?