Package | Description |
---|---|
com.google.inject.binder |
Interfaces which make up
Binder 's
expression language. |
Modifier and Type | Interface and Description |
---|---|
interface |
AnnotatedBindingBuilder<T>
Specifies the annotation for a binding.
|
interface |
LinkedBindingBuilder<T>
Links a binding to another binding or an instance.
|
Modifier and Type | Method and Description |
---|---|
ScopedBindingBuilder |
LinkedBindingBuilder.to(Class<? extends T> implementation)
Binds to another binding with the specified type.
|
ScopedBindingBuilder |
LinkedBindingBuilder.to(Key<? extends T> targetKey)
Binds to another binding with the specified key.
|
ScopedBindingBuilder |
LinkedBindingBuilder.to(TypeLiteral<? extends T> implementation)
Binds to another binding with the specified type.
|
ScopedBindingBuilder |
LinkedBindingBuilder.toProvider(Class<? extends Provider<? extends T>> providerType)
Binds to instances from the provider bound to the given provider type.
|
ScopedBindingBuilder |
LinkedBindingBuilder.toProvider(Key<? extends Provider<? extends T>> providerKey)
Binds to instances from the provider bound to the given key.
|
ScopedBindingBuilder |
LinkedBindingBuilder.toProvider(Provider<? extends T> provider)
Binds to instances generated by the given Provider.
|
Copyright © 2013. All Rights Reserved.