Package org.jdbi.v3.guice.internal
Class InternalImportBindingBuilder<T>
java.lang.Object
org.jdbi.v3.guice.internal.InternalImportBindingBuilder<T>
- All Implemented Interfaces:
com.google.inject.binder.ScopedBindingBuilder
public final class InternalImportBindingBuilder<T>
extends Object
implements com.google.inject.binder.ScopedBindingBuilder
Import binding builder.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static final class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final com.google.inject.binder.ScopedBindingBuilderprivate final com.google.inject.Key<T>private final InternalImportBindingBuilder.InternalBindingProvider<T> -
Constructor Summary
ConstructorsConstructorDescriptionInternalImportBindingBuilder(com.google.inject.binder.LinkedBindingBuilder<T> binder, com.google.inject.Key<T> concreteType) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidin(com.google.inject.Scope scope) voidin(Class<? extends Annotation> scopeAnnotation) com.google.inject.binder.ScopedBindingBuilderBind a different type as the given binding.com.google.inject.binder.ScopedBindingBuilderBind a different type as the given binding.
-
Field Details
-
concreteType
-
binder
private final com.google.inject.binder.ScopedBindingBuilder binder -
provider
-
-
Constructor Details
-
InternalImportBindingBuilder
-
-
Method Details
-
to
Bind a different type as the given binding. This allows binding e.g. implementations to interface types. -
to
public com.google.inject.binder.ScopedBindingBuilder to(com.google.inject.TypeLiteral<? extends T> type) Bind a different type as the given binding. This allows binding e.g. implementations to interface types. -
in
- Specified by:
inin interfacecom.google.inject.binder.ScopedBindingBuilder
-
in
public void in(com.google.inject.Scope scope) - Specified by:
inin interfacecom.google.inject.binder.ScopedBindingBuilder
-
asEagerSingleton
public void asEagerSingleton()- Specified by:
asEagerSingletonin interfacecom.google.inject.binder.ScopedBindingBuilder
-