Dependency Injection with Google Guice

Since our journey began, we have learned the concepts of the DI pattern to understand IoC, got an idea about the modular framework of Java 9 and its DI mechanism, and in the last chapter, we acquired knowledge of the most widely used Spring Framework to understand DI using various examples.

In this chapter, we will see the rudiments of the Google Guice framework and its DI mechanism, and we will also learn various injection types and binding techniques while defining DI in Guice.

Get Java 9 Dependency Injection now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.