The bindings contributed by {@code Module}s define how the {@code Injector} resolves dependencies. A {@link Key} consisting of a typeand optional annotation uniquely identifies a binding within an {@code Injector}.
You may bind from a key to:
In addition, a binding may have an associated scope, such as {@link Scopes#SINGLETON}, and singleton bindings may specify eager or lazy initialization.
See the users' guide appendix, "How the Injector resolves injection requests," to better understand binding resolution.
After an {@code Injector} has been created, its bindings may beexamined using methods like {@link Injector#getBinding(Key)}, but this read-only {@link Binding} type is not used when creating thebindings.
|
|
|
|
|
|
|
|