Chapter 7: Guice Recipes

When you learn any new framework or programming language, picking up the basics usually doesn't take you very long. People tend to learn by reference—once you know how a for loop works in C, understanding similar concepts in other programming languages becomes incredibly easy. Similarly but more in the context of this book, if you already have experience with DI frameworks like the Spring Framework or PicoContainer, you probably didn't have much trouble understanding how Guice works.

Some knowledge, however, can only come from experience with the framework and by discussing ideas with the community. This chapter aims to give you a head start and discusses various best practices and commonly asked questions I've collected ...

Get Google Guice: Agile Lightweight Dependency Injection Framework now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.