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.
Tweet
SaveShareSend
Tags: frameworks, java, methodology, standards
Comments
rick replied ago:
Nice article, Neel. We'd be happy to republish this one on Javalobby if you'd like to give it more exposure.
Cheers,
Rick
indroneel replied ago:
Dear Rick,
Of course I would like it to be republished on JavaLobby. How do we go about doing it?
Cheers, Neel
Voters For This Link (29)
Voters Against This Link (0)