Tabnine Logo
Provides
Code IndexAdd Tabnine to your IDE (free)

How to use
Provides
in
dagger

Best Java code snippets using dagger.Provides (Showing top 20 results out of 2,322)

Refine searchRefine arrow

  • Singleton
origin: android10/Android-CleanArchitecture

 @Provides @Singleton UserRepository provideUserRepository(UserDataRepository userDataRepository) {
  return userDataRepository;
 }
}
origin: square/dagger

 @Provides Pump providePump(Thermosiphon pump) {
  return pump;
 }
}
origin: bumptech/glide

 @Provides
 OkHttpClient okHttpClient() {
  return new OkHttpClient();
 }
}
origin: android10/Android-CleanArchitecture

@Provides @Singleton UserCache provideUserCache(UserCacheImpl userCache) {
 return userCache;
}
origin: smuyyh/BookReader

  @Provides
  public Context provideContext() {
    return context;
  }
}
origin: android10/Android-CleanArchitecture

@Provides @Singleton ThreadExecutor provideThreadExecutor(JobExecutor jobExecutor) {
 return jobExecutor;
}
origin: MindorksOpenSource/android-mvp-architecture

@Provides
RatingDialogMvpPresenter<RatingDialogMvpView> provideRateUsPresenter(
    RatingDialogPresenter<RatingDialogMvpView> presenter) {
  return presenter;
}
origin: android10/Android-CleanArchitecture

@Provides @Singleton PostExecutionThread providePostExecutionThread(UIThread uiThread) {
 return uiThread;
}
origin: MindorksOpenSource/android-mvp-architecture

@Provides
OpenSourceMvpPresenter<OpenSourceMvpView> provideOpenSourcePresenter(
    OpenSourcePresenter<OpenSourceMvpView> presenter) {
  return presenter;
}
origin: android10/Android-CleanArchitecture

@Provides @Singleton Context provideApplicationContext() {
 return this.application;
}
origin: bumptech/glide

@Provides ImgurService getImgurService(Retrofit retrofit) {
 return retrofit.create(ImgurService.class);
}
origin: JessYanCoding/MVPArms

@Singleton
@Provides
RequestInterceptor.Level providePrintHttpLogLevel() {
  return mPrintHttpLogLevel == null ? RequestInterceptor.Level.ALL : mPrintHttpLogLevel;
}
origin: pockethub/PocketHub

  @Provides
  @Named("cacheDir")
  File cacheDir(Context context) {
    return new File(context.getFilesDir(), "cache");
  }
}
origin: JessYanCoding/MVPArms

/**
 * 提供处理 RxJava 错误的管理器的回调
 *
 * @return
 */
@Singleton
@Provides
ResponseErrorListener provideResponseErrorListener() {
  return mErrorListener == null ? ResponseErrorListener.EMPTY : mErrorListener;
}
origin: bumptech/glide

@Provides ImgurObservables imgurObservables(ImgurService imgurService) {
 return new ImgurObservables(imgurService);
}
origin: MindorksOpenSource/android-mvp-architecture

@Provides
@Singleton
DbHelper provideDbHelper(AppDbHelper appDbHelper) {
  return appDbHelper;
}
origin: android10/Android-CleanArchitecture

 /**
 * Expose the activity to dependents in the graph.
 */
 @Provides @PerActivity Activity activity() {
  return this.activity;
 }
}
origin: MindorksOpenSource/android-mvp-architecture

@Provides
@Singleton
DataManager provideDataManager(AppDataManager appDataManager) {
  return appDataManager;
}
origin: square/dagger

 @Provides String provideString() {
  return "injected";
 }
}
origin: MindorksOpenSource/android-mvp-architecture

@Provides
@Singleton
PreferencesHelper providePreferencesHelper(AppPreferencesHelper appPreferencesHelper) {
  return appPreferencesHelper;
}
daggerProvides

Most used methods

  • <init>
  • type

Popular in Java

  • Reading from database using SQL prepared statement
  • getApplicationContext (Context)
  • findViewById (Activity)
  • scheduleAtFixedRate (Timer)
  • BufferedInputStream (java.io)
    A BufferedInputStream adds functionality to another input stream-namely, the ability to buffer the i
  • FileWriter (java.io)
    A specialized Writer that writes to a file in the file system. All write requests made by calling me
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • Iterator (java.util)
    An iterator over a sequence of objects, such as a collection.If a collection has been changed since
  • ResourceBundle (java.util)
    ResourceBundle is an abstract class which is the superclass of classes which provide Locale-specifi
  • ZipFile (java.util.zip)
    This class provides random read access to a zip file. You pay more to read the zip file's central di
  • CodeWhisperer alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now