This is the first part of a write up about Dagger 2 on Android.
- Part1: Dependency injection on Android (this)
- Part2: Dagger 2 usage on Android
- Part3: Closer look at scopes in Dagger 2
Dagger 2 is a dependency injection framework for Java built on the JSR 330 standard. It works in all Java projects but this article will focus on Android development where Dagger is de facto standard for dependency injection.
The latest version, Dagger 2, is developed by Google together with Square, the original developers of Dagger.
Dagger 2 works at compile time in comparison to