- Black Sheep - http://blacksheep.parry.org -
Posted By Chad Parry On March 15, 2010 @ 6:53 pm In Software Development | 28 Comments
The “dependency injection” (DI) technique is a way to improve testability and maintainability of object-oriented code. Typically adoption of dependency injection is coupled with adoption of a dependency injection framework, such as Guice  or Spring . These materials show how dependency injection can be accomplished without any framework. The same benefits provided by frameworks can be realized using “do-it-yourself” (DIY) handcrafted code. This model is named DIY-DI, pronounced die-die.
Update (May 29, 2010): I added a comparison with Guice and more polished code snippets to the DIY-DI manual.
Article printed from Black Sheep: http://blacksheep.parry.org
URL to article: http://blacksheep.parry.org/archives/diy-di
URLs in this post:
 Guice: http://code.google.com/p/google-guice/
 Spring: http://www.springsource.org/
 State of the Art Testability: http://docs.google.com/present/view?id=dg4jbg5c_7cwkvrhfq
 PowerPoint: http://blacksheep.parry.org/wp-content/uploads/2010/03/State-of-the-Art-Testability.ppt
 DIY-DI: http://blacksheep.parry.org/wp-content/uploads/2010/03/DIY-DI.pdf
 DIPresentation: http://blacksheep.parry.org/wp-content/uploads/2010/03/DIPresentation.zip
 : http://is.gd/csF7A
 : http://sonymathew.blogspot.com/2009/11/context-ioc-revisited-i-wrote-about.html
Copyright © 2008 - 2011 Chad and Elisa Parry. All rights reserved.