Tabnine Logo
ProviderMethodsModule.forObject
Code IndexAdd Tabnine to your IDE (free)

How to use
forObject
method
in
com.google.inject.internal.ProviderMethodsModule

Best Java code snippets using com.google.inject.internal.ProviderMethodsModule.forObject (Showing top 19 results out of 315)

origin: com.google.inject/guice

/**
 * 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>
 *
 * <p>This will skip bytecode generation for provider methods, since it is assumed that callers
 * are only interested in Module metadata.
 */
public static Module forObject(Object object) {
 return forObject(object, true, ProvidesMethodScanner.INSTANCE);
}
origin: com.google.inject/guice

/** Returns a module which creates bindings methods in the module that match the scanner. */
public static Module forModule(Object module, ModuleAnnotatedMethodScanner scanner) {
 return forObject(module, false, scanner);
}
origin: com.google.inject/guice

/** Returns a module which creates bindings for provider methods from the given module. */
public static Module forModule(Module module) {
 return forObject(module, false, ProvidesMethodScanner.INSTANCE);
}
origin: jooby-project/jooby

/**
 * Install a {@link Jooby.Module}.
 *
 * @param log Logger.
 * @param module The module to install.
 * @param env Application env.
 * @param config The configuration object.
 * @param binder A Guice binder.
 * @throws Throwable If module bootstrap fails.
 */
private static void install(final Logger log, final Jooby.Module module, final Env env, final Config config,
  final Binder binder) throws Throwable {
 module.configure(env, config, binder);
 try {
  binder.install(ProviderMethodsModule.forObject(module));
 } catch (NoClassDefFoundError x) {
  // Allow dynamic linking of optional dependencies (required by micrometer module), we ignore
  // missing classes here, if there is a missing class Jooby is going to fails early (not here)
  log.debug("ignoring class not found from guice provider method", x);
 }
}
origin: org.xbib/guice

/**
 * 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>
 *
 * <p>This will skip bytecode generation for provider methods, since it is assumed that callers
 * are only interested in Module metadata.
 */
public static Module forObject(Object object) {
  return forObject(object, true, PROVIDES_BUILDER);
}
origin: at.bestsolution.efxclipse.eclipse/com.google.inject

/**
 * Returns a module which creates bindings for provider methods from the given module.
 */
public static Module forModule(Module module) {
 return forObject(module);
}
origin: org.sonatype.sisu/sisu-guice

/**
 * 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>
 *
 * <p>This will skip bytecode generation for provider methods, since it is assumed that callers
 * are only interested in Module metadata.
 */
public static Module forObject(Object object) {
 return forObject(object, true, ProvidesMethodScanner.INSTANCE);
}
origin: com.jwebmp.inject/guice

/**
 * 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>
 *
 * <p>This will skip bytecode generation for provider methods, since it is assumed that callers
 * are only interested in Module metadata.
 */
public static Module forObject(Object object) {
 return forObject(object, true, ProvidesMethodScanner.INSTANCE);
}
origin: com.google/inject

/**
 * Returns a module which creates bindings for provider methods from the given module.
 */
public static Module forModule(Module module) {
 return forObject(module);
}
origin: org.xbib/guice

/**
 * Returns a module which creates bindings for provider methods from the given module.
 */
public static Module forModule(Module module) {
  return forObject(module, false, PROVIDES_BUILDER);
}
origin: org.xbib/guice

/**
 * Returns a module which creates bindings methods in the module that match the scanner.
 */
public static Module forModule(Object module, ModuleAnnotatedMethodScanner scanner) {
  return forObject(module, false, scanner);
}
origin: Nextdoor/bender

/**
 * Returns a module which creates bindings for provider methods from the given module.
 */
public static Module forModule(Module module) {
 return forObject(module);
}
origin: org.sonatype.sisu/sisu-guice

/** Returns a module which creates bindings for provider methods from the given module. */
public static Module forModule(Module module) {
 return forObject(module, false, ProvidesMethodScanner.INSTANCE);
}
origin: org.sonatype.sisu/sisu-guice

/** Returns a module which creates bindings methods in the module that match the scanner. */
public static Module forModule(Object module, ModuleAnnotatedMethodScanner scanner) {
 return forObject(module, false, scanner);
}
origin: com.jwebmp.inject/guice

/** Returns a module which creates bindings for provider methods from the given module. */
public static Module forModule(Module module) {
 return forObject(module, false, ProvidesMethodScanner.INSTANCE);
}
origin: com.jwebmp.inject/guice

/** Returns a module which creates bindings methods in the module that match the scanner. */
public static Module forModule(Object module, ModuleAnnotatedMethodScanner scanner) {
 return forObject(module, false, scanner);
}
origin: org.jooby/jooby

/**
 * Install a {@link Jooby.Module}.
 *
 * @param log Logger.
 * @param module The module to install.
 * @param env Application env.
 * @param config The configuration object.
 * @param binder A Guice binder.
 * @throws Throwable If module bootstrap fails.
 */
private static void install(final Logger log, final Jooby.Module module, final Env env, final Config config,
  final Binder binder) throws Throwable {
 module.configure(env, config, binder);
 try {
  binder.install(ProviderMethodsModule.forObject(module));
 } catch (NoClassDefFoundError x) {
  // Allow dynamic linking of optional dependencies (required by micrometer module), we ignore
  // missing classes here, if there is a missing class Jooby is going to fails early (not here)
  log.debug("ignoring class not found from guice provider method", x);
 }
}
origin: io.github.gwtplus.gin/gin

public void configure(Binder binder) {
 // For Guice error reporting, ignore the adapters
 binder = binder.skipSources(GinModuleAdapter.class, BinderAdapter.class,
   AbstractGinModule.class);
 ginModule.configure(new BinderAdapter(binder, bindings));
 // Install provider methods from the GinModule
 binder.install(ProviderMethodsModule.forObject(ginModule));
}
origin: io.github.gwtplus.gin/gin

public void configure() {
 Binder binder = binder().skipSources(PrivateGinModuleAdapter.class,
   BinderAdapter.class, PrivateBinderAdapter.class, PrivateGinModule.class);
 ginModule.configure(new PrivateBinderAdapter((PrivateBinder) binder,
   bindings == null ? null : bindings.createChildGinjectorBindings(ginModule.getClass())));
 // Install provider methods from the GinModule
 binder.install(ProviderMethodsModule.forObject(ginModule));
}

com.google.inject.internalProviderMethodsModuleforObject

Javadoc

Returns a module which creates bindings for provider methods from the given object. This is useful notably for GIN

Popular methods of ProviderMethodsModule

  • forModule
    Returns a module which creates bindings methods in the module that match the scanner.
  • getProviderMethods
  • <init>
  • 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

  • Start an intent from android
  • findViewById (Activity)
  • getApplicationContext (Context)
  • addToBackStack (FragmentTransaction)
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • BoxLayout (javax.swing)
  • JButton (javax.swing)
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
  • Best IntelliJ plugins
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