Package com.google.inject.internal
Class BindingBuilder<T>
java.lang.Object
com.google.inject.internal.AbstractBindingBuilder<T>
com.google.inject.internal.BindingBuilder<T>
- All Implemented Interfaces:
AnnotatedBindingBuilder<T>,LinkedBindingBuilder<T>,ScopedBindingBuilder
public class BindingBuilder<T>
extends AbstractBindingBuilder<T>
implements AnnotatedBindingBuilder<T>
Bind a non-constant key.
- Author:
- jessewilson@google.com (Jesse Wilson)
-
Field Summary
Fields inherited from class com.google.inject.internal.AbstractBindingBuilder
ANNOTATION_ALREADY_SPECIFIED, binder, BINDING_TO_NULL, CONSTANT_VALUE_ALREADY_SET, elements, IMPLEMENTATION_ALREADY_SET, NULL_KEY, position, SCOPE_ALREADY_SET, SINGLE_INSTANCE_AND_SCOPE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionannotatedWith(Annotation annotation) See the EDSL examples atBinder.annotatedWith(Class<? extends Annotation> annotationType) See the EDSL examples atBinder.See the EDSL examples atBinder.to(TypeLiteral<? extends T> implementation) See the EDSL examples atBinder.See the EDSL examples atBinder.<S extends T>
ScopedBindingBuildertoConstructor(Constructor<S> constructor) See the EDSL examples atBinder.<S extends T>
ScopedBindingBuildertoConstructor(Constructor<S> constructor, TypeLiteral<? extends S> type) See the EDSL examples atBinder.voidtoInstance(T instance) See the EDSL examples atBinder.toProvider(Key<? extends javax.inject.Provider<? extends T>> providerKey) See the EDSL examples atBinder.toProvider(Provider<? extends T> provider) See the EDSL examples atBinder.toProvider(TypeLiteral<? extends javax.inject.Provider<? extends T>> providerType) See the EDSL examples atBinder.toProvider(Class<? extends javax.inject.Provider<? extends T>> providerType) See the EDSL examples atBinder.toProvider(javax.inject.Provider<? extends T> provider) See the EDSL examples atBinder.toString()Methods inherited from class com.google.inject.internal.AbstractBindingBuilder
annotatedWithInternal, annotatedWithInternal, asEagerSingleton, checkNotAnnotated, checkNotScoped, checkNotTargetted, getBinding, in, in, keyTypeIsSet, setBindingMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.inject.binder.ScopedBindingBuilder
asEagerSingleton, in, in
-
Constructor Details
-
BindingBuilder
-
-
Method Details
-
annotatedWith
Description copied from interface:AnnotatedBindingBuilderSee the EDSL examples atBinder.- Specified by:
annotatedWithin interfaceAnnotatedBindingBuilder<T>
-
annotatedWith
Description copied from interface:AnnotatedBindingBuilderSee the EDSL examples atBinder.- Specified by:
annotatedWithin interfaceAnnotatedBindingBuilder<T>
-
to
Description copied from interface:LinkedBindingBuilderSee the EDSL examples atBinder.- Specified by:
toin interfaceLinkedBindingBuilder<T>
-
to
Description copied from interface:LinkedBindingBuilderSee the EDSL examples atBinder.- Specified by:
toin interfaceLinkedBindingBuilder<T>
-
to
Description copied from interface:LinkedBindingBuilderSee the EDSL examples atBinder.- Specified by:
toin interfaceLinkedBindingBuilder<T>
-
toInstance
Description copied from interface:LinkedBindingBuilderSee the EDSL examples atBinder.- Specified by:
toInstancein interfaceLinkedBindingBuilder<T>- See Also:
-
toProvider
Description copied from interface:LinkedBindingBuilderSee the EDSL examples atBinder.- Specified by:
toProviderin interfaceLinkedBindingBuilder<T>- See Also:
-
toProvider
Description copied from interface:LinkedBindingBuilderSee the EDSL examples atBinder.- Specified by:
toProviderin interfaceLinkedBindingBuilder<T>- See Also:
-
toProvider
public BindingBuilder<T> toProvider(Class<? extends javax.inject.Provider<? extends T>> providerType) Description copied from interface:LinkedBindingBuilderSee the EDSL examples atBinder.- Specified by:
toProviderin interfaceLinkedBindingBuilder<T>
-
toProvider
public BindingBuilder<T> toProvider(TypeLiteral<? extends javax.inject.Provider<? extends T>> providerType) Description copied from interface:LinkedBindingBuilderSee the EDSL examples atBinder.- Specified by:
toProviderin interfaceLinkedBindingBuilder<T>
-
toProvider
Description copied from interface:LinkedBindingBuilderSee the EDSL examples atBinder.- Specified by:
toProviderin interfaceLinkedBindingBuilder<T>
-
toConstructor
Description copied from interface:LinkedBindingBuilderSee the EDSL examples atBinder.- Specified by:
toConstructorin interfaceLinkedBindingBuilder<T>
-
toConstructor
public <S extends T> ScopedBindingBuilder toConstructor(Constructor<S> constructor, TypeLiteral<? extends S> type) Description copied from interface:LinkedBindingBuilderSee the EDSL examples atBinder.- Specified by:
toConstructorin interfaceLinkedBindingBuilder<T>
-
toString
-