| Constructor and Description |
|---|
SimpleBinder(App app,
BindingStack bindingStack) |
| Modifier and Type | Method and Description |
|---|---|
<T> ServiceConfigurator<T> |
bind(Class<T> implementationClass)
Start binging a service from the specific implementation class.
|
<T> ServiceConfigurator<T> |
bind(T implementation)
Start binging a service from the specific implementation instance.
|
<T extends Module> |
bindModule(Class<T> componentClass)
Start binding a new module.
|
void |
commit()
Commit the binder into the app.
|
BindingStack |
getBindingContext() |
@Inject public SimpleBinder(App app, BindingStack bindingStack)
public <T> ServiceConfigurator<T> bind(Class<T> implementationClass)
Binderpublic <T> ServiceConfigurator<T> bind(T implementation)
Binderpublic <T extends Module> T bindModule(Class<T> componentClass)
BinderbindModule in interface Binderpublic BindingStack getBindingContext()
Copyright © 2016. All rights reserved.