| Modifier and Type | Method and Description |
|---|---|
void |
configure(Binder binder)
Contributes bindings and other configurations for this module to
binder. |
boolean |
equals(java.lang.Object o) |
static Module |
forModule(Module module)
Returns a module which creates bindings for provider methods from the given module.
|
static Module |
forModule(java.lang.Object module,
ModuleAnnotatedMethodScanner scanner)
Returns a module which creates bindings methods in the module that match the scanner.
|
static Module |
forObject(java.lang.Object object)
Returns a module which creates bindings for provider methods from the given object.
|
java.lang.Class<?> |
getDelegateModuleClass() |
java.util.List<ProviderMethod<?>> |
getProviderMethods(Binder binder) |
ModuleAnnotatedMethodScanner |
getScanner() |
int |
hashCode() |
boolean |
isScanningBuiltInProvidesMethods()
Is it scanning the built-in @Provides* methods.
|
public static Module forModule(Module module)
public static Module forModule(java.lang.Object module, ModuleAnnotatedMethodScanner scanner)
public static Module forObject(java.lang.Object object)
This will skip bytecode generation for provider methods, since it is assumed that callers are only interested in Module metadata.
public java.lang.Class<?> getDelegateModuleClass()
public void configure(Binder binder)
Modulebinder.
Do not invoke this method directly to install submodules. Instead use
Binder.install(Module), which ensures that provider methods are
discovered.
public java.util.List<ProviderMethod<?>> getProviderMethods(Binder binder)
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean isScanningBuiltInProvidesMethods()
public ModuleAnnotatedMethodScanner getScanner()