Top Description Methods
com.google.inject.binder

public Interface LinkedBindingBuilder<T>

extends ScopedBindingBuilder
Known Direct Subinterfaces
com.google.inject.binder.AnnotatedBindingBuilder
Imports
com.google.inject.Key, .Provider, .TypeLiteral, java.lang.reflect.Constructor

See the EDSL examples at com.google.inject.Binder.
Author
[email protected] (Bob Lee)

Method Summary

Modifier and TypeMethod and Description
public ScopedBindingBuilder
to(Class<? extends T> implementation)

See the EDSL examples at com.google.inject.Binder.

public ScopedBindingBuilder
to(TypeLiteral<? extends T> implementation)

See the EDSL examples at com.google.inject.Binder.

public ScopedBindingBuilder
to(Key<? extends T> targetKey)

See the EDSL examples at com.google.inject.Binder.

public <S extends T> ScopedBindingBuilder
toConstructor(Constructor<S> constructor)

See the EDSL examples at com.google.inject.Binder.

public <S extends T> ScopedBindingBuilder
toConstructor(Constructor<S> constructor, TypeLiteral<? extends S> type)

See the EDSL examples at com.google.inject.Binder.

public void
toInstance(T instance)

See the EDSL examples at com.google.inject.Binder.

public ScopedBindingBuilder
toProvider(Provider<? extends T> provider)

See the EDSL examples at com.google.inject.Binder.

public ScopedBindingBuilder
toProvider(Provider<? extends T> provider)

See the EDSL examples at com.google.inject.Binder.

public ScopedBindingBuilder
toProvider(Class<? extends Provider<? extends T>> providerType)

See the EDSL examples at com.google.inject.Binder.

public ScopedBindingBuilder
toProvider(TypeLiteral<? extends Provider<? extends T>> providerType)

See the EDSL examples at com.google.inject.Binder.

public ScopedBindingBuilder
toProvider(Key<? extends Provider<? extends T>> providerKey)

See the EDSL examples at com.google.inject.Binder.

Inherited from com.google.inject.binder.ScopedBindingBuilder:
asEagerSingletoninin

Method Detail

toback to summary
public ScopedBindingBuilder to(Class<? extends T> implementation)

See the EDSL examples at com.google.inject.Binder.

toback to summary
public ScopedBindingBuilder to(TypeLiteral<? extends T> implementation)

See the EDSL examples at com.google.inject.Binder.

toback to summary
public ScopedBindingBuilder to(Key<? extends T> targetKey)

See the EDSL examples at com.google.inject.Binder.

toConstructorback to summary
public <S extends T> ScopedBindingBuilder toConstructor(Constructor<S> constructor)

See the EDSL examples at com.google.inject.Binder.

Since
3.0
toConstructorback to summary
public <S extends T> ScopedBindingBuilder toConstructor(Constructor<S> constructor, TypeLiteral<? extends S> type)

See the EDSL examples at com.google.inject.Binder.

Since
3.0
toInstanceback to summary
public void toInstance(T instance)

See the EDSL examples at com.google.inject.Binder.

See Also
com.google.inject.Injector#injectMembers
toProviderback to summary
public ScopedBindingBuilder toProvider(Provider<? extends T> provider)

See the EDSL examples at com.google.inject.Binder.

See Also
com.google.inject.Injector#injectMembers
toProviderback to summary
public ScopedBindingBuilder toProvider(Provider<? extends T> provider)

See the EDSL examples at com.google.inject.Binder.

Since
4.0
See Also
com.google.inject.Injector#injectMembers
toProviderback to summary
public ScopedBindingBuilder toProvider(Class<? extends Provider<? extends T>> providerType)

See the EDSL examples at com.google.inject.Binder.

toProviderback to summary
public ScopedBindingBuilder toProvider(TypeLiteral<? extends Provider<? extends T>> providerType)

See the EDSL examples at com.google.inject.Binder.

toProviderback to summary
public ScopedBindingBuilder toProvider(Key<? extends Provider<? extends T>> providerKey)

See the EDSL examples at com.google.inject.Binder.