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 TypeMethodDescriptionvoidstatic <T> InternalLooseImportBindingBuilder<T>createLooseBinding(LinkedBindingBuilder<T> binder, Key<T> concreteType) voidvoidin(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:
 inin interfaceScopedBindingBuilder
 - 
in
- Specified by:
 inin interfaceScopedBindingBuilder
 - 
asEagerSingleton
public void asEagerSingleton()- Specified by:
 asEagerSingletonin interfaceScopedBindingBuilder
 
 -