google/dagger ↗
Created Jun 18, 2022 · View the google/dagger repository page
A fast dependency injector for Android and Java.
Want this for your repo?
Render a free sample of any GitHub repo in seconds.
Contributors
163
Lines of Code
24,571
From
Jun 25, 2012
To
Jun 17, 2022
About google/dagger
Dagger is a compile-time dependency injection framework for Java and Android maintained by Google. Unlike runtime dependency injection systems, Dagger performs all its analysis at compile-time and generates plain Java source code, avoiding the use of reflection or runtime bytecode generation. This approach makes it particularly fast and suitable for performance-critical environments like Android applications.
The framework integrates with common build systems including Maven, Gradle, and Bazel, with annotation processors handling code generation during compilation. Dagger also includes specialized modules for Android development and a beta extension called dagger-producers that enables parallelizable execution graphs. The project evolved from earlier work at Square and remains actively maintained with snapshot releases deployed automatically to Maven repositories.
Developers can use Dagger across various platforms through multiple installation methods, with comprehensive documentation and API references available. The framework is widely adopted in both small and large-scale Java and Android projects where dependency management and compile-time safety are priorities.


