|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface LinkedBindingBuilder<T>
Links a binding to another binding or an instance.
Method Summary | |
---|---|
ScopedBindingBuilder |
to(java.lang.Class<? extends T> implementation)
Binds to another binding with the specified type. |
ScopedBindingBuilder |
to(Key<? extends T> targetKey)
Binds to another binding with the specified key. |
ScopedBindingBuilder |
to(TypeLiteral<? extends T> implementation)
Binds to another binding with the specified type. |
void |
toInstance(T instance)
Binds to the given instance. |
ScopedBindingBuilder |
toProvider(java.lang.Class<? extends Provider<? extends T>> providerType)
Binds to instances from the provider bound to the given provider type. |
ScopedBindingBuilder |
toProvider(Key<? extends Provider<? extends T>> providerKey)
Binds to instances from the provider bound to the given key. |
ScopedBindingBuilder |
toProvider(Provider<? extends T> provider)
Binds to instances generated by the given Provider. |
Methods inherited from interface com.google.inject.binder.ScopedBindingBuilder |
---|
asEagerSingleton, in, in |
Method Detail |
---|
ScopedBindingBuilder to(java.lang.Class<? extends T> implementation)
ScopedBindingBuilder to(TypeLiteral<? extends T> implementation)
ScopedBindingBuilder to(Key<? extends T> targetKey)
void toInstance(T instance)
Injector.injectMembers(Object)
.
ScopedBindingBuilder toProvider(Provider<? extends T> provider)
Injector.injectMembers(Object)
.
ScopedBindingBuilder toProvider(java.lang.Class<? extends Provider<? extends T>> providerType)
ScopedBindingBuilder toProvider(Key<? extends Provider<? extends T>> providerKey)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |