File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

What is the difference between autowire and dependancy injection

 
samir vasani
Ranch Hand
Posts: 64
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Expert,

Kindly let me know
What is the difference between autowire and dependancy injection
 
Tim Cooke
Sheriff
Pie
Posts: 2706
110
Clojure IntelliJ IDE Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The two things are related but not comparable. Autowiring is a Spring feature that helps you achieve Dependency Injection.
 
Krishna Srinivasan
Ranch Hand
Posts: 1862
Firefox Browser Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic