public abstract class ModuleAdapter<T> extends Object
@Module
-annotated class.Modifier and Type | Field and Description |
---|---|
boolean |
complete |
Class<?>[] |
includes |
String[] |
injectableTypes |
boolean |
library |
Class<T> |
moduleClass |
boolean |
overrides |
Class<?>[] |
staticInjections |
Modifier | Constructor and Description |
---|---|
protected |
ModuleAdapter(Class<T> moduleClass,
String[] injectableTypes,
Class<?>[] staticInjections,
boolean overrides,
Class<?>[] includes,
boolean complete,
boolean library) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
void |
getBindings(BindingsGroup map,
T module)
Returns bindings for the
@Provides methods of module . |
int |
hashCode() |
protected T |
newModule()
Returns a new instance of the module class created using a no-args
constructor.
|
public final String[] injectableTypes
public final Class<?>[] staticInjections
public final boolean overrides
public final Class<?>[] includes
public final boolean complete
public final boolean library
public void getBindings(BindingsGroup map, T module)
@Provides
methods of module
. The
returned bindings must be linked before they can be used to inject values.protected T newModule()
Copyright © 2018 Square, Inc.. All rights reserved.