Channels

Services

Guice 2.0: dependency injection released by Google

Version 2.0 of Guice, a lightweight Java framework, has been released. Guice (pronounced "juice") is Google's open source dependency injection framework for developing with Java. According to the developers, it's found in almost any Java-based Google application – for example in AdWords, Google Docs, Gmail and YouTube. Guice works with the Java Standard Edition (Java SE), the Java Enterprise Edition (Java EE), Google's App Engine cloud environment, the mobile Android operating system and, via GIN (GWT INjection) with the Google Web Toolkit. A list and description of the new features can be found in the release notes.

Guice uses the dependency injection pattern for solving the problem of having too many direct dependencies between objects in large applications. The framework establishes configurable connections between objects that don't directly reference one another. The Guice developers were inspired by the Spring Framework.