Package com.google.inject.internal
Class RealMapBinder.MultimapBinder.RealProviderMultimapProvider<K,V>
java.lang.Object
com.google.inject.internal.InternalProviderInstanceBindingImpl.Factory<Map<K,Set<Provider<V>>>>
com.google.inject.internal.RealMapBinder.RealMultimapBinderProviderWithDependencies<K,V,Map<K,Set<Provider<V>>>>
com.google.inject.internal.RealMapBinder.MultimapBinder.RealProviderMultimapProvider<K,V>
- All Implemented Interfaces:
InternalFactory<Map<K,
,Set<Provider<V>>>> Provider<Map<K,
,Set<Provider<V>>>> HasDependencies
,javax.inject.Provider<Map<K,
Set<Provider<V>>>>
- Enclosing class:
RealMapBinder.MultimapBinder<K,
V>
private static final class RealMapBinder.MultimapBinder.RealProviderMultimapProvider<K,V>
extends RealMapBinder.RealMultimapBinderProviderWithDependencies<K,V,Map<K,Set<Provider<V>>>>
-
Field Summary
FieldsFields inherited from class com.google.inject.internal.RealMapBinder.RealMultimapBinderProviderWithDependencies
bindingSelection, mapKey
Fields inherited from class com.google.inject.internal.InternalProviderInstanceBindingImpl.Factory
provisionCallback
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
doInitialize
(InjectorImpl injector, Errors errors) Initialize the factory.doProvision
(InternalContext context, Dependency<?> dependency) Creates an object to be injected.Set
<Dependency<?>> Returns the known dependencies for this type.Methods inherited from class com.google.inject.internal.RealMapBinder.RealMultimapBinderProviderWithDependencies
equals, hashCode, initialize
Methods inherited from class com.google.inject.internal.InternalProviderInstanceBindingImpl.Factory
get, get, getSource
-
Field Details
-
multimapOfProviders
-
dependencies
-
-
Constructor Details
-
RealProviderMultimapProvider
-
-
Method Details
-
getDependencies
Description copied from interface:HasDependencies
Returns the known dependencies for this type. If this has dependencies whose values are not known statically, a dependency for theInjector
will be included in the returned set.- Returns:
- a possibly empty set
-
doInitialize
Description copied from class:RealMapBinder.RealMultimapBinderProviderWithDependencies
Initialize the factory. BindingSelection is guaranteed to be initialized at this point and this will be called prior to any provisioning.- Specified by:
doInitialize
in classRealMapBinder.RealMultimapBinderProviderWithDependencies<K,
V, Map<K, Set<Provider<V>>>>
-
doProvision
Description copied from class:InternalProviderInstanceBindingImpl.Factory
Creates an object to be injected.- Specified by:
doProvision
in classInternalProviderInstanceBindingImpl.Factory<Map<K,
Set<Provider<V>>>> - Returns:
- instance to be injected
-