O'Reilly logo

Learning Google Guice by Hussain Pithawala

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. Getting Started with Guice

We begin with discussing what are dependencies and how they are resolved directly in a conventional application development. Later on we will discuss the demerits of direct resolution of dependencies, and how to address it using the dependency inversion principle. Following this we move on to discuss Inversion of Control, which is further discussed in one of its most popular ways, Dependency Injection (DI). Later, we will discuss how dependency injection works better when delegated to Guice.

Wiring dependencies

An object-oriented approach to application development requires breaking up of application logic into various classes. A complex operation could be simply viewed as an abstraction in a high-level class, ...

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