O'Reilly logo

Google Guice: Agile Lightweight Dependency Injection Framework by Robbie Vanbrabant

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 1: Setting the Stage

You've probably heard about dependency injection (DI), and if so, you're in for a real treat: Guice (pronounced "juice") is, in my opinion, by far the most innovative framework in the problem space. Created by Google employees "Crazy" Bob Lee (http://crazybob.org) and Kevin Bourrillion (http://smallwig.blogspot.com), this lightweight, open source DI framework is designed to bring true ease of development to the world of DI. Taking advantage of Java 5 features like no other application has before, Guice is the XML-free cure to hard-to-maintain code.

Before I start talking about using frameworks, DI, and whatnot, I think it's best to step back and take a look why initiatives like Guice exist in the first place. Obviously, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required