Binder.BindingContext| Constructor and Description |
|---|
SimpleBinder(App app,
SimpleBindingContext bindingStack) |
| Modifier and Type | Method and Description |
|---|---|
<T extends Component> |
bindComponent(Class<T> componentClass)
Start binding a component (Collection of services).
|
<T> ServiceConfigurator<T> |
bindService(Class<T> implementationClass)
Start binging a service from the specific implementation class.
|
<T> ServiceConfigurator<T> |
bindService(T implementation)
Start binging a service from the specific implementation instance.
|
void |
commit()
Commit the binder into the app.
|
SimpleBindingContext |
getBindingContext() |
@Inject public SimpleBinder(App app, SimpleBindingContext bindingStack)
public <T> ServiceConfigurator<T> bindService(Class<T> implementationClass)
BinderbindService in interface Binderpublic <T> ServiceConfigurator<T> bindService(T implementation)
BinderbindService in interface Binderpublic <T extends Component> T bindComponent(Class<T> componentClass)
BinderbindComponent in interface Binderpublic SimpleBindingContext getBindingContext()
public void commit()
Copyright © 2015. All rights reserved.