Link Details

Link 17834 thumbnail
User 224082 avatar

By indroneel
via neelzone.wordpress.com
Published: Apr 04 2007 / 09:17

A lot of programmers I interact with are unable to differentiate between dependency injection and inversion of control. Thanks to the popularity of Spring framework and EJB 3.0 there is now a tendency to use these terms interchangeably, even as they represent distinctly different concepts, resulting in a lot of ambiguities. Inversion of control has its antecedents in the Hollywood principle (don’t call us, we’ll call you) and is not a design pattern. Rather, it is a general principle that is realized in multiple design patterns. Dependency injection is one such pattern that builds on top of this principle. Inversion of control is one of the tenets for all object-oriented frameworks, but not all object-oriented frameworks provide the features of dependency injection.
  • 29
  • 0
  • 2464
  • 684

Comments

Add your comment
User 1 avatar

rick replied ago:

0 votes Vote down Vote up Reply

Nice article, Neel. We'd be happy to republish this one on Javalobby if you'd like to give it more exposure.

Cheers,
Rick

User 224082 avatar

indroneel replied ago:

0 votes Vote down Vote up Reply

Dear Rick,

Of course I would like it to be republished on JavaLobby. How do we go about doing it?

Cheers, Neel

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.