Discussions

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 twobooks 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:

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.

Guice is Awesome!!. Im using it on a project and also with IntelliGuice on Intellij is very good. Congratulations to the team for this release is very important.
This is a truly lightweight DI framework. No more no less.

what is google's idea behid promoting this ?
This guice is just Ioc stuff.
Why would i use soemthing in my application just for ioc and still depend on other frameworks like spring for mvc, jdbc, transactions, jms , web services etc.
why wotn i just use soring Ioc as well so i have Everything with high cohesion and low coupling ?

what is google's idea behid promoting this ?This guice is just Ioc stuff. Why would i use soemthing in my application just for ioc and still depend on other frameworks like spring for mvc, jdbc, transactions, jms , web services etc. why wotn i just use soring Ioc as well so i have Everything with high cohesion and low coupling ?

what is google's idea behid promoting this ?This guice is just Ioc stuff. Why would i use soemthing in my application just for ioc and still depend on other frameworks like spring for mvc, jdbc, transactions, jms , web services etc. why wotn i just use soring Ioc as well so i have Everything with high cohesion and low coupling ?

what is google's idea behid promoting this ?This guice is just Ioc stuff. Why would i use soemthing in my application just for ioc and still depend on other frameworks like spring for mvc, jdbc, transactions, jms , web services etc. why wotn i just use soring Ioc as well so i have Everything with high cohesion and low coupling ?

what is google's idea behid promoting this ?This guice is just Ioc stuff. Why would i use soemthing in my application just for ioc and still depend on other frameworks like spring for mvc, jdbc, transactions, jms , web services etc. why wotn i just use soring Ioc as well so i have Everything with high cohesion and low coupling ?

+1

Is there any chance not to implement Guice interfaces?

Well if the "atinject" JSR is successful you could use standard interfaces and switch between Spring and Guice configurations as you feel like it (or at least with less pain than at the moment).
Even now with Guice 2 you can use the new injection hooks to support your own custom injections, like James Strachan does for Spring and @Resource annotations, etc. over at GuiceyFruit.

TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations technology projects - with its network of technology-specific websites, events and online magazines.