@Provides方法可以将依赖项作为参数,就像带
@Inject注释的构造函数或方法的参数一样:
@Provides Something provideSomething(Dependency d) { return new Something(d); // or whatever}这是记录在这里,虽然也许它可以作出更加脱颖而出。

@Provides方法可以将依赖项作为参数,就像带
@Inject注释的构造函数或方法的参数一样:
@Provides Something provideSomething(Dependency d) { return new Something(d); // or whatever}这是记录在这里,虽然也许它可以作出更加脱颖而出。