Codota Logo
Provides.<init>
Code IndexAdd Codota 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)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Charset c =
  • Codota IconString charsetName;Charset.forName(charsetName)
  • Codota IconCharset.defaultCharset()
  • Codota IconContentType contentType;contentType.getCharset()
  • Smart code suggestions by Codota
}
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 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 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 @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

  • Making http requests using okhttp
  • findViewById (Activity)
  • onCreateOptionsMenu (Activity)
  • putExtra (Intent)
  • PrintWriter (java.io)
    Prints formatted representations of objects to a text-output stream. This class implements all of th
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • ResourceBundle (java.util)
    Resource bundles contain locale-specific objects. When your program needs a locale-specific resource
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement.A servlet is a small Java program that runs within
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now