For example:
class A{
B b;
C c;
@Inject
A(B b){
this.b = b;
}
@Inject
A(C c){
this.c = c;
}
}
And in one of the module:
@Module
public class BModule {
private final B b;
public BModule(B b){
this.b = b;
}
@Provides
BInterface provideB(){
return b;
}
}
But I got error that I can't inject two constructors in a class, what should I do to handle the problem? Thank you!