Package io.bootique.di
Interface SetBuilder<T>
- Type Parameters:
T- A type of set elements
- All Superinterfaces:
ScopeBuilder
A binding builder for set configurations.
- Since:
- 2.0.M1
-
Method Summary
Modifier and TypeMethodDescriptiondefault SetBuilder<T>Deprecated.default SetBuilder<T>addAll(Collection<T> values) Deprecated.since 2.0.B1 in favor ofaddInstances(Collection)for naming consistencyaddInstance(T value) addInstances(Collection<T> values) addProvider(Class<? extends javax.inject.Provider<? extends T>> value) default SetBuilder<T>addProvider(javax.inject.Provider<? extends T> value) Deprecated.since 2.0.B1 in favor ofaddProviderInstance(Provider)to avoid ambiguityaddProviderInstance(javax.inject.Provider<? extends T> value) Methods inherited from interface io.bootique.di.ScopeBuilder
in, initOnStartup, inSingletonScope, withoutScope
-
Method Details
-
add
- Throws:
DIRuntimeException
-
addInstance
- Throws:
DIRuntimeException- Since:
- 2.0.B1
-
add
- Throws:
DIRuntimeException
-
addProviderInstance
SetBuilder<T> addProviderInstance(javax.inject.Provider<? extends T> value) throws DIRuntimeException - Throws:
DIRuntimeException- Since:
- 2.0.B1
-
addProvider
SetBuilder<T> addProvider(Class<? extends javax.inject.Provider<? extends T>> value) throws DIRuntimeException - Throws:
DIRuntimeException
-
addInstances
- Throws:
DIRuntimeException- Since:
- 2.0.B1
-
add
Deprecated.since 2.0.B1 in favor ofaddInstance(Object)to avoid ambiguity- Throws:
DIRuntimeException
-
addProvider
@Deprecated default SetBuilder<T> addProvider(javax.inject.Provider<? extends T> value) throws DIRuntimeException Deprecated.since 2.0.B1 in favor ofaddProviderInstance(Provider)to avoid ambiguity- Throws:
DIRuntimeException
-
addAll
Deprecated.since 2.0.B1 in favor ofaddInstances(Collection)for naming consistency- Throws:
DIRuntimeException
-
addInstance(Object)to avoid ambiguity