Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

What is the difference between autowire and dependancy injection

 
samir vasani
Ranch Hand
Posts: 65
  • 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: 3151
136
Clojure IntelliJ IDE Java
  • 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: 1874
Firefox Browser Java
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic