Discussions

News: Announcing Guice 2!

  1. Announcing Guice 2! (11 messages)

    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

    By Jesse Wilson, Google Developer Team
    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.

    Threaded Messages (11)

  2. Great job[ Go to top ]

    Great release. AssistedInject and hierarchical injectors were long awaited, and it is nice to have them. Just upgraded to 2.0 and deleted a bunch of now unnecessary code. It works like a cherm.
  3. Re: Announcing Guice 2![ Go to top ]

    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.
  4. Re: Announcing Guice 2![ Go to top ]

    Interesting framework, but how many people are actually using it? I did a cursory search on Dice and didn't find much
  5. Re: Announcing Guice 2![ Go to top ]

    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 ?
  6. Re: Announcing Guice 2![ Go to top ]

    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 ?
    Yeah! soring is great!
  7. Re: Announcing Guice 2![ Go to top ]

    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 ?


    Yeah! soring is great!
    i meant spring. :)
  8. Re: Announcing Guice 2![ Go to top ]

    That's okay. I use Blackberry storm too. :-)
  9. Why do we need Guice ?[ Go to top ]

    Why do we need another web-framework when all the features such as Dependency Injection, Annotations, Modularize development of code, etc. can be done using Spring Framework and Maven tools. I have also put this in my blog http://www.vikramark.com/2009/07/why-do-we-need-guice.html
  10. Re: Announcing Guice 2![ Go to top ]

    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?
  11. Re: Announcing Guice 2![ Go to top ]

    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.
  12. Congrats and Thanks!![ Go to top ]

    You guys have done a great job on this! I've been enjoying the Feb. snapshot, and am happy to now download this GA release :) Guice is the best!! Thanks for all your hard work Bob and everyone else!