Package com.google.inject.internal
Class RealMapBinder.RealProviderMapProvider<K,V>
java.lang.Object
com.google.inject.internal.InternalProviderInstanceBindingImpl.Factory<Map<K,Provider<V>>>
com.google.inject.internal.RealMapBinder.RealMapBinderProviderWithDependencies<K,V,Map<K,Provider<V>>>
com.google.inject.internal.RealMapBinder.RealProviderMapProvider<K,V>
- All Implemented Interfaces:
InternalFactory<Map<K,
,Provider<V>>> Provider<Map<K,
,Provider<V>>> HasDependencies
,javax.inject.Provider<Map<K,
Provider<V>>>
- Enclosing class:
RealMapBinder<K,
V>
private static final class RealMapBinder.RealProviderMapProvider<K,V>
extends RealMapBinder.RealMapBinderProviderWithDependencies<K,V,Map<K,Provider<V>>>
-
Field Summary
FieldsFields inherited from class com.google.inject.internal.RealMapBinder.RealMapBinderProviderWithDependencies
bindingSelection
Fields inherited from class com.google.inject.internal.InternalProviderInstanceBindingImpl.Factory
provisionCallback
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
RealProviderMapProvider
(RealMapBinder.BindingSelection<K, V> bindingSelection) -
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.RealMapBinderProviderWithDependencies
equals, hashCode, initialize
Methods inherited from class com.google.inject.internal.InternalProviderInstanceBindingImpl.Factory
get, get, getSource
-
Field Details
-
mapOfProviders
-
dependencies
-
-
Constructor Details
-
RealProviderMapProvider
-
-
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.RealMapBinderProviderWithDependencies
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.RealMapBinderProviderWithDependencies<K,
V, Map<K, Provider<V>>>
-
doProvision
Description copied from class:InternalProviderInstanceBindingImpl.Factory
Creates an object to be injected.- Specified by:
doProvision
in classInternalProviderInstanceBindingImpl.Factory<Map<K,
Provider<V>>> - Returns:
- instance to be injected
-