阅读背景:

使用dagger2进行依赖注入时,我可以注入超类吗?

来源:互联网 

I use Dagger2 for DI in my android application. I found that I have to write inject method for every class that uses @Inject field. Is there a way that I can just inject the parent class so that I don't have to call inject on every subclass? Take Activity for example. I have a I use Dagger2 for DI in my android application.




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: