T - The type being provided forpublic interface BindingBuilder<T>
| Modifier and Type | Method and Description |
|---|---|
BindingBuilder<T> |
annotatedWith(Class<? extends Annotation> annotation)
Indicates a classifier that the binding will listen for.
|
void |
toInstance(T instance)
Creates a binding that is provided by the given static instance.
|
void |
toProvider(Provider<T> provider)
Creates a binding that is provided by the given provider class.
|
BindingBuilder<T> annotatedWith(Class<? extends Annotation> annotation)
annotation - The classifier annotation classvoid toProvider(Provider<T> provider)
provider - The providervoid toInstance(T instance)
instance - The instanceCopyright © 2015. All Rights Reserved.