Can we rewrite:
/** An implementation of the Presenter */public class SayHelloPresenter implements SayHelloContract.Presenter{ //.... @Inject public SayHelloPresenter(Person person, SayHelloContract.View view) { this.person = person; this.view = view; } //....}
Into something like:
/** An implementation of the Presenter */public class SayHelloPresenter implements SayHelloContract.Presenter{
//....
@Inject Person person
@inject SayHelloContract.View view)
//....}
To be more consistent with the way you inject the presenter into the activity.
I’m confused cos I’m new to dependency injection and the syntax @Inject SayHelloPresenter()
constructor is hard to understand :(