Package com.google.inject.internal
Class RealMultibinder.RealMultibinderCollectionOfProvidersProvider<T>
java.lang.Object
com.google.inject.internal.InternalProviderInstanceBindingImpl.Factory<Collection<Provider<T>>>
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, dependenciesFnFields inherited from class com.google.inject.internal.InternalProviderInstanceBindingImpl.Factory
provisionCallback -
Constructor Summary
ConstructorsConstructorDescriptionRealMultibinderCollectionOfProvidersProvider(RealMultibinder.BindingSelection<T> bindingSelection) -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddoProvision(InternalContext context, Dependency<?> dependency) Creates an object to be injected.Methods inherited from class com.google.inject.internal.RealMultibinder.BaseFactory
equals, getDependencies, hashCode, initializeMethods 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:
doInitializein 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.FactoryCreates an object to be injected.- Specified by:
doProvisionin classInternalProviderInstanceBindingImpl.Factory<Collection<Provider<T>>>- Returns:
- instance to be injected
-