Created
September 10, 2015 15:59
-
-
Save patrykpoborca/81f4b6507b876b783719 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class BasePresenter<T extends BasePresenterView> { | |
private T presenterView; | |
private UtilityWrapper utilityWrapper; | |
public BasePresenter() { | |
utilityWrapper = new UtilityWrapper(); | |
DaggerActivityComponent.builder() | |
.baseComponent(PSAApplication.getBaseComponent()) | |
.build() | |
.inject(utilityWrapper); | |
} | |
public void registerView(T view) { | |
presenterView = view; | |
} | |
public void onDettach() { | |
} | |
public T getView() { | |
return presenterView; | |
} | |
public StringFormatter getStringFormatter() { | |
return utilityWrapper.getStringFormatter(); | |
} | |
public Scheduler getMainScheduler() { | |
return utilityWrapper.getMainScheduler(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment