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

How to use
com.google.inject.internal.ProviderMethodsModule
constructor

Best Java code snippets using com.google.inject.internal.ProviderMethodsModule.<init> (Showing top 7 results out of 315)

origin: com.google.inject/guice

private static Module forObject(
  Object object, boolean skipFastClassGeneration, ModuleAnnotatedMethodScanner scanner) {
 // avoid infinite recursion, since installing a module always installs itself
 if (object instanceof ProviderMethodsModule) {
  return Modules.EMPTY_MODULE;
 }
 return new ProviderMethodsModule(object, skipFastClassGeneration, scanner);
}
origin: Nextdoor/bender

/**
 * Returns a module which creates bindings for provider methods from the given object.
 * This is useful notably for <a href="http://code.google.com/p/google-gin/">GIN</a>
 */
public static Module forObject(Object object) {
 // avoid infinite recursion, since installing a module always installs itself
 if (object instanceof ProviderMethodsModule) {
  return Modules.EMPTY_MODULE;
 }
 return new ProviderMethodsModule(object);
}
public synchronized void configure(Binder binder) {
origin: org.xbib/guice

private static Module forObject(Object object, boolean skipFastClassGeneration,
                ModuleAnnotatedMethodScanner scanner) {
  // avoid infinite recursion, since installing a module always installs itself
  if (object instanceof ProviderMethodsModule) {
    return Modules.EMPTY_MODULE;
  }
  return new ProviderMethodsModule(object, skipFastClassGeneration, scanner);
}
origin: com.jwebmp.inject/guice

private static Module forObject(
  Object object, boolean skipFastClassGeneration, ModuleAnnotatedMethodScanner scanner) {
 // avoid infinite recursion, since installing a module always installs itself
 if (object instanceof ProviderMethodsModule) {
  return Modules.EMPTY_MODULE;
 }
 return new ProviderMethodsModule(object, skipFastClassGeneration, scanner);
}
origin: com.google/inject

/**
 * Returns a module which creates bindings for provider methods from the given object.
 * This is useful notably for <a href="http://code.google.com/p/google-gin/">GIN</a>
 */
public static Module forObject(Object object) {
 // avoid infinite recursion, since installing a module always installs itself
 if (object instanceof ProviderMethodsModule) {
  return Modules.EMPTY_MODULE;
 }
 return new ProviderMethodsModule(object);
}
public synchronized void configure(Binder binder) {
origin: org.sonatype.sisu/sisu-guice

private static Module forObject(
  Object object, boolean skipFastClassGeneration, ModuleAnnotatedMethodScanner scanner) {
 // avoid infinite recursion, since installing a module always installs itself
 if (object instanceof ProviderMethodsModule) {
  return Modules.EMPTY_MODULE;
 }
 return new ProviderMethodsModule(object, skipFastClassGeneration, scanner);
}
origin: at.bestsolution.efxclipse.eclipse/com.google.inject

/**
 * Returns a module which creates bindings for provider methods from the given object.
 * This is useful notably for <a href="http://code.google.com/p/google-gin/">GIN</a>
 */
public static Module forObject(Object object) {
 // avoid infinite recursion, since installing a module always installs itself
 if (object instanceof ProviderMethodsModule) {
  return Modules.EMPTY_MODULE;
 }
 return new ProviderMethodsModule(object);
}
public synchronized void configure(Binder binder) {
com.google.inject.internalProviderMethodsModule<init>

Popular methods of ProviderMethodsModule

  • forModule
    Returns a module which creates bindings methods in the module that match the scanner.
  • forObject
  • getProviderMethods
  • createProviderMethod
  • getKey
  • getDelegateModule
  • overrides
    Returns true if a overrides b, assumes that the signatures match
  • getAnnotation
    Returns the annotation that is claimed by the scanner, or null if there is none.
  • isProvider
    Returns true if the method is a provider. Synthetic bridge methods are excluded. Starting with JDK 8

Popular in Java

  • Running tasks concurrently on multiple threads
  • setScale (BigDecimal)
  • getResourceAsStream (ClassLoader)
  • scheduleAtFixedRate (Timer)
  • InputStreamReader (java.io)
    A class for turning a byte stream into a character stream. Data read from the source input stream is
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • Stack (java.util)
    Stack is a Last-In/First-Out(LIFO) data structure which represents a stack of objects. It enables u
  • TreeMap (java.util)
    Walk the nodes of the tree left-to-right or right-to-left. Note that in descending iterations, next
  • JPanel (javax.swing)
  • Options (org.apache.commons.cli)
    Main entry-point into the library. Options represents a collection of Option objects, which describ
  • 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