We briefly discussed the need of dependency injection, and how direct dependency initialization could create problems. Later, we brought Guice to rescue us from this problem. We saw how to configure simple bindings, inject constants, and wire dependencies.
We also saw the two sample applications, one with vanilla dependency initialization and other with Google Guice. We build and ran the sample code using maven. By now, we should be ready to start exploring Google Guice to solve more challenges, which we will face in developing the application further.
In the next chapter we will discuss various ways of dependency injection using Guice, different types of bindings, and other commonly used features.