Wednesday, February 3, 2010

Guice - a light-weight DI framework from google

Dependency Injection helps you to write loosely coupled object oriented code. As a side-effect, you will be able to write a better testable code. A good discussion is found at http://en.wikipedia.org/wiki/Dependency_injection

For Java there are a few alternatives when it comes to using frameworks to help you with implementing dependency injection. I found the Java community likes the Guice framework from google for this purpose. If you have some time, you can try this.

No comments:

Post a Comment