| Modifier and Type | Method and Description |
|---|---|
void |
configure(Binder
Contributes bindings and other configurations for this module to
binder.
|
boolean |
equals(Object
|
static Module |
forModule(Module
Returns a module which creates bindings for provider methods from the given module.
|
static Module |
forModule(Object
Returns a module which creates bindings methods in the module that match the scanner.
|
static Module |
forObject(Object
Returns a module which creates bindings for provider methods from the given object.
|
Object |
getDelegateModule()
|
List |
getProviderMethods(Binder
|
int |
hashCode()
|
public static ModuleforModule(Module module)
public static ModuleforModule(Object module, ModuleAnnotatedMethodScanner scanner)
public static ModuleforObject(Object object)
This will skip bytecode generation for provider methods, since it is assumed that callers are only interested in Module metadata.
public ObjectgetDelegateModule()
public void configure(Binderbinder)
Module
binder.
Do not invoke this method directly to install submodules. Instead use Binder, which ensures that provider methods are discovered.
public List<ProviderMethod <?>> getProviderMethods(Binder binder)
public boolean equals(Objecto)
public int hashCode()