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,java.util.Collection<Provider<T>>>
-
- com.google.inject.internal.RealMultibinder.RealMultibinderCollectionOfProvidersProvider<T>
-
- All Implemented Interfaces:
InternalFactory<java.util.Collection<Provider<T>>>
,Provider<java.util.Collection<Provider<T>>>
,HasDependencies
,javax.inject.Provider<java.util.Collection<Provider<T>>>
- Enclosing class:
- RealMultibinder<T>
private static final class RealMultibinder.RealMultibinderCollectionOfProvidersProvider<T> extends RealMultibinder.BaseFactory<T,java.util.Collection<Provider<T>>>
Implementation of BaseFactory that exposes a collection of providers of the values in the set.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) com.google.common.collect.ImmutableList<Provider<T>>
providers
-
Fields inherited from class com.google.inject.internal.RealMultibinder.BaseFactory
bindingSelection, dependenciesFn
-
Fields inherited from class com.google.inject.internal.InternalProviderInstanceBindingImpl.Factory
provisionCallback
-
-
Constructor Summary
Constructors Constructor Description RealMultibinderCollectionOfProvidersProvider(RealMultibinder.BindingSelection<T> bindingSelection)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
doInitialize()
protected com.google.common.collect.ImmutableList<Provider<T>>
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
-
-
-
-
Constructor Detail
-
RealMultibinderCollectionOfProvidersProvider
RealMultibinderCollectionOfProvidersProvider(RealMultibinder.BindingSelection<T> bindingSelection)
-
-
Method Detail
-
doInitialize
protected void doInitialize()
- Specified by:
doInitialize
in classRealMultibinder.BaseFactory<T,java.util.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<java.util.Collection<Provider<T>>>
- Returns:
- instance to be injected
-
-