Stats

303 Contributors: 6 Thursday, August 3, 2017
Licensed under: CC-BY-SA
Not affiliated with Stack Overflow
Rip Tutorial: riptutorial@gmail.com
Roadmap: roadmap

Dagger 2

Syntax

  • @Module
  • @Component(dependencies={OtherComponent.class}, modules={ModuleA.class, ModuleB.class})
  • DaggerMyComponent.create()
  • DaggerMyComponent.builder().myModule(newMyModule()).create()

Remarks

Not to confuse with dagger by square, the predecessor to dagger 2.

Related Examples