Tabnine Logo
Provides.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
dagger.Provides
constructor

Best Java code snippets using dagger.Provides.<init> (Showing top 20 results out of 2,295)

origin: square/dagger

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

 @Provides
 OkHttpClient okHttpClient() {
  return new OkHttpClient();
 }
}
origin: bumptech/glide

@Provides ImgurService getImgurService(Retrofit retrofit) {
 return retrofit.create(ImgurService.class);
}
origin: android10/Android-CleanArchitecture

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

@Singleton
@Named("hotViralImages")
@Provides
Observable<List<Image>> provideHotViralImages(ImgurObservables imgurObservables) {
 return imgurObservables.getHotViralImages(5 /*maxPages*/);
}
origin: bumptech/glide

@Provides ImgurObservables imgurObservables(ImgurService imgurService) {
 return new ImgurObservables(imgurService);
}
origin: square/dagger

/**
 * Allow the activity context to be injected but require that it be annotated with
 * {@link ForActivity @ForActivity} to explicitly differentiate it from application context.
 */
@Provides @Singleton @ForActivity Context provideActivityContext() {
 return activity;
}
origin: square/dagger

/**
 * Allow the application context to be injected but require that it be annotated with
 * {@link ForApplication @ForApplication} to explicitly differentiate it from an activity context.
 */
@Provides @Singleton @ForApplication Context provideApplicationContext() {
 return application;
}
origin: square/dagger

/**
 * Allow the application context to be injected but require that it be annotated with
 * {@link ForApplication @Annotation} to explicitly differentiate it from an activity context.
 */
@Provides @Singleton @ForApplication Context provideApplicationContext() {
 return application;
}
origin: android10/Android-CleanArchitecture

 /**
 * Expose the activity to dependents in the graph.
 */
 @Provides @PerActivity Activity activity() {
  return this.activity;
 }
}
origin: square/dagger

 @Provides @Singleton ActivityTitleController provideTitleController() {
  return new ActivityTitleController(activity);
 }
}
origin: square/dagger

 @Provides String provideString() {
  return "injected";
 }
}
origin: square/dagger

 @Provides @Singleton LocationManager provideLocationManager() {
  return (LocationManager) application.getSystemService(LOCATION_SERVICE);
 }
}
origin: square/dagger

 @Provides @Singleton LocationManager provideLocationManager() {
  return (LocationManager) application.getSystemService(LOCATION_SERVICE);
 }
}
origin: square/dagger

 @Provides String provideString() {
  return value;
 }
}
origin: square/dagger

 @Provides @Singleton Heater provideHeater() {
  return new ElectricHeater();
 }
}
origin: pockethub/PocketHub

@Provides
@Singleton
RepositoryCommentService providesRepositoryCommentService(Context context) {
  return ServiceGenerator.createService(context, RepositoryCommentService.class);
}
origin: pockethub/PocketHub

@Provides
@Singleton
GistService providesGistService(Context context) {
  return ServiceGenerator.createService(context, GistService.class);
}
origin: square/dagger

 @Provides Integer provideInteger() {
  try {
   latch.await();
  } catch (InterruptedException e) {
   throw new AssertionError("Interrupted Thread!!");
  }
  return count.getAndIncrement();
 }
}
origin: square/dagger

@Provides @Singleton Long provideLong() {
 return Long.valueOf(provideInteger());
}
daggerProvides<init>

Popular methods of Provides

  • type

Popular in Java

  • Updating database using SQL prepared statement
  • getSupportFragmentManager (FragmentActivity)
  • getSystemService (Context)
  • getApplicationContext (Context)
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • PrintWriter (java.io)
    Wraps either an existing OutputStream or an existing Writerand provides convenience methods for prin
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
  • IsNull (org.hamcrest.core)
    Is the value null?
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
  • 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