Skip navigation links

Package dagger

This package contains the public API for the Dagger 2 dependency injection framework.

See: Description

Package dagger Description

This package contains the public API for the Dagger 2 dependency injection framework. By building upon JSR 330, Dagger 2 provides an annotation-driven API for dependency injection whose implementation is entirely generated at compile time by annotation processors.

The entry point into the API is the Component, which annotates abstract types for Dagger 2 to implement. The dependency graph is configured using annotations such as Module, Provides and Inject.

dagger.internal.codegen.ComponentProcessor is the processor responsible for generating the implementation. Dagger uses the annotation procesor service loader to automatically configure the processor, so explict build configuration shouldn't be necessary.

Skip navigation links