Using Dagger for dependency injection on constructors

前端 未结 5 684
故里飘歌
故里飘歌 2021-01-31 17:17

So, I\'m currently redesigning an Android app of mine to use Dagger. My app is large and complicated, and I recently came across the following scenario:

Object A requir

5条回答
  •  北恋
    北恋 (楼主)
    2021-01-31 17:42

    I just want to add that years passed after this question has been posted and now there is a library called AssistedInject which has been created by Jake and friends at Square, to solve the exact same problem and is fully compatible with Dagger 2.

    You can find it here: https://github.com/square/AssistedInject

提交回复
热议问题