Injection.java 800 B

123456789101112131415161718192021222324
  1. package com.epson.iprint.storage.gdrivev3;
  2. import com.epson.iprint.storage.Network;
  3. import com.epson.iprint.storage.gdrivev3.GoogleDownloadContract;
  4. class Injection {
  5. private static volatile DownloadPresenterFactory sDownloadPresenterFactory;
  6. interface DownloadPresenterFactory {
  7. GoogleDownloadPresenter createDownloadPresenter(@NonNull GoogleDownloadContract.View view);
  8. }
  9. static void setDownloadPresenterFactory(@Nullable DownloadPresenterFactory downloadPresenterFactory) {
  10. }
  11. Injection() {
  12. }
  13. static GoogleDownloadPresenter provideDownloadPresenter(@NonNull GoogleDownloadContract.View view) {
  14. return new GoogleDownloadPresenter(new IprintGoogleSignIn(), new PlayServiceDialogManager(), new DownloaderWrapper(), new Network(), view);
  15. }
  16. }