Dagger 2

Download android eBook

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

Stats

303 Contributors: 6
Thursday, August 3, 2017
Licensed under: CC-BY-SA

Not affiliated with Stack Overflow
Rip Tutorial: info@zzzprojects.com

Download eBook