Tuesday, May 19, 2009

GuiceĀ²

After two years in the making, it's official. We've released Guice 2! Here's Jesse's announcement from the Google Code Blog:

Two years ago, Bob Lee and Kevin Bourrillion open sourced Google Guice 1.0, a lightweight Java dependency injection framework. Guice takes the pain out of writing and maintaining Java applications big and small. Guice has gained a great deal of traction both inside and outside of Google. Almost every Java-based application at Google is also a Guice-based application; the list includes AdWords, Google Docs, Gmail, and even YouTube. Open source users run Guice in everything from file-sharing software to ATMs. They've even written two books about this Jolt-award-winning framework.

Today, we're releasing Guice 2. The minimally-sized API extensions introduced by Guice 2 will have a majorly positive impact on the size and maintainability of your code. We closely scrutinized each addition, carefully balancing maintainability and flexibility. Here are a few of my favorite new features:

  • Provider methods eliminate the boilerplate of manually-constructed dependencies.
  • Module overrides allow you to tweak a production module for a unit test or QA deployment.
  • Private modules enable compartmentalized configuration, simplifying module reuse.
Guice works with Java SE, Java EE, Google App Engine, Android, and even Google Web Toolkit (via GIN).

References
Guice 2.0 Release Notes
Downloads
User's Guide
Javadoc

In addition to the user-facing features mentioned by Jesse, Guice 2 provides an extensive service provider API that enables first class extensions like James Strachan's GuiceyFruit and makes writing tools like Guice Grapher a snap.

Thanks, Jesse, for all of your hard work on this release. Special thanks goes to our users for being patient and building a vibrant community around Guice.

If you're interested in learning more, don't miss Jesse and Dhanji's Guice 2 talks at Google I/O and JavaOne.

3 Comments:

Blogger Neil said...

Great! Have to say unfortunately, I found the Guice 1.0 docs much clearer than the 2.0 docs, and I didn't have to read them in the bizarre MSDN-esque docreader.

3:56 AM  
Blogger Daniel K said...

Congratulations! I would love to see somebody implement an integrated web-framework like Grails on top of Guice/Java with the feature-set of Spring.

So often I would like to use Guice, but I end up using Spring, because there is a Spring-Module that fulfills a project requirement that just needs some configuration to work (Like adding LDAP authentication with Acegi to the list of authentictionproviders). The Spring-stack has so many optional features from which you benefit for free, you almost feel ashamed to not be on their commit-log. ;)

4:34 AM  
Blogger Nate Kohari said...

Congratulations on the 2.0 release!

6:39 AM  

Post a Comment

Links to this post:

Create a Link

<< Home