Package io.bootique.di
Interface BindingBuilder<T>
- Type Parameters:
T- An interface type of the service being bound.
- All Superinterfaces:
ScopeBuilder
A binding builder that helps with fluent binding creation.
-
Method Summary
Modifier and TypeMethodDescriptiontoInstance(T instance) toProvider(Class<? extends javax.inject.Provider<? extends T>> providerType) toProviderInstance(javax.inject.Provider<? extends T> provider) Methods inherited from interface io.bootique.di.ScopeBuilder
in, initOnStartup, inSingletonScope, withoutScope
-
Method Details
-
to
- Throws:
DIRuntimeException
-
to
- Throws:
DIRuntimeException
-
toInstance
- Throws:
DIRuntimeException
-
toProvider
ScopeBuilder toProvider(Class<? extends javax.inject.Provider<? extends T>> providerType) throws DIRuntimeException - Throws:
DIRuntimeException
-
toProviderInstance
ScopeBuilder toProviderInstance(javax.inject.Provider<? extends T> provider) throws DIRuntimeException - Throws:
DIRuntimeException
-