Package com.google.inject.internal
Class RealMultibinder.RealMultibinderCollectionOfProvidersProvider<T>
java.lang.Object
com.google.inject.internal.InternalProviderInstanceBindingImpl.Factory<ProvidedT>
com.google.inject.internal.RealMultibinder.BaseFactory<T,Collection<Provider<T>>>
com.google.inject.internal.RealMultibinder.RealMultibinderCollectionOfProvidersProvider<T>
- All Implemented Interfaces:
InternalFactory<Collection<Provider<T>>>
,Provider<Collection<Provider<T>>>
,HasDependencies
,javax.inject.Provider<Collection<Provider<T>>>
- Enclosing class:
- RealMultibinder<T>
private static final class RealMultibinder.RealMultibinderCollectionOfProvidersProvider<T>
extends RealMultibinder.BaseFactory<T,Collection<Provider<T>>>
Implementation of BaseFactory that exposes a collection of providers of the values in the set.
-
Field Summary
FieldsModifier and TypeFieldDescriptionFields inherited from class com.google.inject.internal.RealMultibinder.BaseFactory
bindingSelection, dependenciesFn
Fields inherited from class com.google.inject.internal.InternalProviderInstanceBindingImpl.Factory
provisionCallback
-
Constructor Summary
ConstructorsConstructorDescriptionRealMultibinderCollectionOfProvidersProvider
(RealMultibinder.BindingSelection<T> bindingSelection) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
doProvision
(InternalContext context, Dependency<?> dependency) Creates an object to be injected.Methods inherited from class com.google.inject.internal.RealMultibinder.BaseFactory
equals, getDependencies, hashCode, initialize
Methods inherited from class com.google.inject.internal.InternalProviderInstanceBindingImpl.Factory
get, get, getSource
-
Field Details
-
providers
-
-
Constructor Details
-
RealMultibinderCollectionOfProvidersProvider
RealMultibinderCollectionOfProvidersProvider(RealMultibinder.BindingSelection<T> bindingSelection)
-
-
Method Details
-
doInitialize
protected void doInitialize()- Specified by:
doInitialize
in classRealMultibinder.BaseFactory<T,
Collection<Provider<T>>>
-
doProvision
protected com.google.common.collect.ImmutableList<Provider<T>> doProvision(InternalContext context, Dependency<?> dependency) Description copied from class:InternalProviderInstanceBindingImpl.Factory
Creates an object to be injected.- Specified by:
doProvision
in classInternalProviderInstanceBindingImpl.Factory<Collection<Provider<T>>>
- Returns:
- instance to be injected
-