Chapter 1: Setting the Stage ......................................................................................... 1
The Problem................................................................................................................................... 1
A Fortunate Example .................................................................................................................... 3
Dependency Injection.................................................................................................................... 5
DI, Guice Style .............................................................................................................................. 8
Summary ...................................................................................................................................... 10
Chapter 2: Enter Guice .............................................................................................. 11
Getting Guice............................................................................................................................... 11
Preparing the Code ...................................................................................................................... 12
Specifying an Implementation.................................................................................................... 15
Bootstrapping............................................................................................................................... 15
Choosing Between Implementations.......................................................................................... 17
Implicit Bindings ......................................................................................................................... 21
Scoping......................................................................................................................................... 22
Debunking Myths