Inversion of Control (IoC)
Articles:
- Dependency Injection and Unit Testing by Christophe Verre - [Clicks: 24]
In this article, we will see: * what Dependency Injection is; * how to make a class Dependency Injection friendly; * why Dependency Injection can ease unit tests.
http://www.javaranch.com/journal/200709/di-unit-testing.html - Sep, 2007 - Squeezing More Guice from Your Tests with EasyMock by Dick Wall - [Clicks: 19]
See what EasyMock can do for you when coupled with Guice.
[Includes sample code]
http://www.developer.com/design/article.php/3688436 - Jul, 2007 - Guicing Up Your Testing by Dick Wall - [Clicks: 10]
Explore ways to use Guice to eliminate dependencies on slow implementations when unit testing an object and replace those slow implementations with faster fake ones.
http://www.developer.com/design/article.php/3684656 - Jun, 2007 - In pursuit of code quality: Beware the tight couple! by Andrew Glover - [Clicks: 12]
You know tight coupling is bad news and you really want to avoid it in your designs -- but the question is how. This month, learn how to recognize a tightly coupled system and then disentangle it using the Dependency Inversion Principle.
http://www.ibm.com/developerworks/java/library/j-cq05227/index.html - May, 2007 - Dependency Injection with Guice by Paul Jensen - [Clicks: 24]
In the past few years, the Java community has embraced the principles of Dependency Injection (DI). DI frameworks such as Spring are in widespread use. Recently, a new DI framework called Guice (pronounced “juice”) has drawn attention. As opposed to more comprehensive frameworks like Spring, Guice functionality is limited almost exclusively to Dependency Injection (some AOP support representing the “almost”). Guice also differs from Spring, defining wiring with Java as opposed to XML.
http://www.ociweb.com/jnb/jnbMay2007.html - May, 2007 - Use Inversion of Control in method signatures by Andre Fachat - [Clicks: 27]
The Inversion of Control (IoC) pattern is normally used for components. This article describes how to use the pattern on method signatures to decrease the coupling between components and improve performance. IBM Global Business Services consultant Andre Fachat uses two examples to show the flexibility of this approach.
http://www-128.ibm.com/developerworks/java/library/j-ioc/index.html - Jan, 2007
[Top]