Top Description Fields Constructors Methods
com.google.inject.internal

public Class BindingBuilder<T>

extends AbstractBindingBuilder<T>
implements AnnotatedBindingBuilder<T>
Class Inheritance
All Implemented Interfaces
com.google.inject.binder.AnnotatedBindingBuilder, com.google.inject.binder.LinkedBindingBuilder, com.google.inject.binder.ScopedBindingBuilder
Static Imports
com.google.common.base.Preconditions.checkNotNull

Bind a non-constant key.
Author
[email protected] (Jesse Wilson)

Field Summary

Inherited from com.google.inject.internal.AbstractBindingBuilder:
ANNOTATION_ALREADY_SPECIFIEDbinderBINDING_TO_NULLCONSTANT_VALUE_ALREADY_SETelementsIMPLEMENTATION_ALREADY_SETNULL_KEYpositionSCOPE_ALREADY_SETSINGLE_INSTANCE_AND_SCOPE

Constructor Summary

AccessConstructor and Description
public
BindingBuilder(Binder binder, List<Element> elements, Object source, Key<T> key)

Method Summary

Modifier and TypeMethod and Description
public BindingBuilder<T>
public BindingBuilder<T>
private void
public BindingBuilder<T>
to(Class<? extends T> implementation)

Implements com.google.inject.binder.LinkedBindingBuilder.to.

See the EDSL examples at com.google.inject.Binder.
public BindingBuilder<T>
to(TypeLiteral<? extends T> implementation)

Implements com.google.inject.binder.LinkedBindingBuilder.to.

See the EDSL examples at com.google.inject.Binder.
public BindingBuilder<T>
to(Key<? extends T> linkedKey)

Implements com.google.inject.binder.LinkedBindingBuilder.to.

See the EDSL examples at com.google.inject.Binder.
public <S extends T> ScopedBindingBuilder
public <S extends T> ScopedBindingBuilder
public void
public BindingBuilder<T>
public BindingBuilder<T>
public BindingBuilder<T>
toProvider(Class<? extends Provider<? extends T>> providerType)

Implements com.google.inject.binder.LinkedBindingBuilder.toProvider.

See the EDSL examples at com.google.inject.Binder.
public BindingBuilder<T>
toProvider(TypeLiteral<? extends Provider<? extends T>> providerType)

Implements com.google.inject.binder.LinkedBindingBuilder.toProvider.

See the EDSL examples at com.google.inject.Binder.
public BindingBuilder<T>
toProvider(Key<? extends Provider<? extends T>> providerKey)

Implements com.google.inject.binder.LinkedBindingBuilder.toProvider.

See the EDSL examples at com.google.inject.Binder.
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
Inherited from com.google.inject.internal.AbstractBindingBuilder:
annotatedWithInternalannotatedWithInternalasEagerSingletoncheckNotAnnotatedcheckNotScopedcheckNotTargettedgetBindingininkeyTypeIsSetsetBinding

Constructor Detail

BindingBuilderback to summary
public BindingBuilder(Binder binder, List<Element> elements, Object source, Key<T> key)

Method Detail

annotatedWithback to summary
public BindingBuilder<T> annotatedWith(Class<? extends Annotation> annotationType)

Implements com.google.inject.binder.AnnotatedBindingBuilder.annotatedWith.

Doc from com.google.inject.binder.AnnotatedBindingBuilder.annotatedWith.

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

Annotations
@Override
annotatedWithback to summary
public BindingBuilder<T> annotatedWith(Annotation annotation)

Implements com.google.inject.binder.AnnotatedBindingBuilder.annotatedWith.

Doc from com.google.inject.binder.AnnotatedBindingBuilder.annotatedWith.

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

Annotations
@Override
copyErrorsToBinderback to summary
private void copyErrorsToBinder(ConfigurationException e)
toback to summary
public BindingBuilder<T> to(Class<? extends T> implementation)

Implements com.google.inject.binder.LinkedBindingBuilder.to.

Doc from com.google.inject.binder.LinkedBindingBuilder.to.

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

Annotations
@Override
toback to summary
public BindingBuilder<T> to(TypeLiteral<? extends T> implementation)

Implements com.google.inject.binder.LinkedBindingBuilder.to.

Doc from com.google.inject.binder.LinkedBindingBuilder.to.

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

Annotations
@Override
toback to summary
public BindingBuilder<T> to(Key<? extends T> linkedKey)

Implements com.google.inject.binder.LinkedBindingBuilder.to.

Doc from com.google.inject.binder.LinkedBindingBuilder.to.

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

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

Implements com.google.inject.binder.LinkedBindingBuilder.toConstructor.

Doc from com.google.inject.binder.LinkedBindingBuilder.toConstructor.

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

Annotations
@Override
toConstructorback to summary
public <S extends T> ScopedBindingBuilder toConstructor(Constructor<S> constructor, TypeLiteral<? extends S> type)

Implements com.google.inject.binder.LinkedBindingBuilder.toConstructor.

Doc from com.google.inject.binder.LinkedBindingBuilder.toConstructor.

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

Annotations
@Override
toInstanceback to summary
public void toInstance(T instance)

Implements com.google.inject.binder.LinkedBindingBuilder.toInstance.

Doc from com.google.inject.binder.LinkedBindingBuilder.toInstance.

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

Annotations
@Override
toProviderback to summary
public BindingBuilder<T> toProvider(Provider<? extends T> provider)

Implements com.google.inject.binder.LinkedBindingBuilder.toProvider.

Doc from com.google.inject.binder.LinkedBindingBuilder.toProvider.

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

Annotations
@Override
toProviderback to summary
public BindingBuilder<T> toProvider(Provider<? extends T> provider)

Implements com.google.inject.binder.LinkedBindingBuilder.toProvider.

Doc from com.google.inject.binder.LinkedBindingBuilder.toProvider.

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

Annotations
@Override
toProviderback to summary
public BindingBuilder<T> toProvider(Class<? extends Provider<? extends T>> providerType)

Implements com.google.inject.binder.LinkedBindingBuilder.toProvider.

Doc from com.google.inject.binder.LinkedBindingBuilder.toProvider.

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

Annotations
@Override
toProviderback to summary
public BindingBuilder<T> toProvider(TypeLiteral<? extends Provider<? extends T>> providerType)

Implements com.google.inject.binder.LinkedBindingBuilder.toProvider.

Doc from com.google.inject.binder.LinkedBindingBuilder.toProvider.

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

Annotations
@Override
toProviderback to summary
public BindingBuilder<T> toProvider(Key<? extends Provider<? extends T>> providerKey)

Implements com.google.inject.binder.LinkedBindingBuilder.toProvider.

Doc from com.google.inject.binder.LinkedBindingBuilder.toProvider.

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

Annotations
@Override
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object

Annotations
@Override