Package org.jdbi.v3.guice.internal
Class InternalLooseImportBindingBuilder<T>
java.lang.Object
org.jdbi.v3.guice.internal.InternalLooseImportBindingBuilder<T>
- All Implemented Interfaces:
ScopedBindingBuilder
public final class InternalLooseImportBindingBuilder<T>
extends Object
implements ScopedBindingBuilder
Binding builder for loose bindings (with optional default).
-
Method Summary
Modifier and TypeMethodDescriptionvoid
static <T> InternalLooseImportBindingBuilder<T>
createLooseBinding
(LinkedBindingBuilder<T> binder, Key<T> concreteType) void
void
in
(Class<? extends Annotation> scopeAnnotation) to
(TypeLiteral<? extends T> type) Bind a different type as the given binding.Bind a different type as the given binding.withDefault
(T value) If the requested binding does not exist, bind the given default value.
-
Method Details
-
createLooseBinding
public static <T> InternalLooseImportBindingBuilder<T> createLooseBinding(LinkedBindingBuilder<T> binder, Key<T> concreteType) -
withDefault
If the requested binding does not exist, bind the given default value. -
to
Bind a different type as the given binding. This allows binding e.g. implementations to interface types. -
to
Bind a different type as the given binding. This allows binding e.g. implementations to interface types. -
in
- Specified by:
in
in interfaceScopedBindingBuilder
-
in
- Specified by:
in
in interfaceScopedBindingBuilder
-
asEagerSingleton
public void asEagerSingleton()- Specified by:
asEagerSingleton
in interfaceScopedBindingBuilder
-