Codota Logo
ProviderMethodsModule.forObject
Code IndexAdd Codota 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)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
ArrayList a =
  • Codota Iconnew ArrayList<String>()
  • Codota Iconnew ArrayList()
  • Codota Iconnew ArrayList<Object>()
  • Smart code suggestions by Codota
}
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

  • Making http post requests using okhttp
  • putExtra (Intent)
  • getSharedPreferences (Context)
  • getExternalFilesDir (Context)
  • Color (java.awt)
    The Color class is used encapsulate colors in the default sRGB color space or colors in arbitrary co
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • Collectors (java.util.stream)
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