Package com.google.inject.internal
Class RealMapBinder.RealProviderMapProvider<K,V>
java.lang.Object
com.google.inject.internal.InternalProviderInstanceBindingImpl.Factory<P>
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
bindingSelectionFields inherited from class com.google.inject.internal.InternalProviderInstanceBindingImpl.Factory
provisionCallback -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateRealProviderMapProvider(RealMapBinder.BindingSelection<K, V> bindingSelection) -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddoInitialize(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, initializeMethods 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:HasDependenciesReturns the known dependencies for this type. If this has dependencies whose values are not known statically, a dependency for theInjectorwill be included in the returned set.- Returns:
- a possibly empty set
-
doInitialize
Description copied from class:RealMapBinder.RealMapBinderProviderWithDependenciesInitialize the factory. BindingSelection is guaranteed to be initialized at this point and this will be called prior to any provisioning.- Specified by:
doInitializein classRealMapBinder.RealMapBinderProviderWithDependencies<K,V, Map<K, Provider<V>>>
-
doProvision
Description copied from class:InternalProviderInstanceBindingImpl.FactoryCreates an object to be injected.- Specified by:
doProvisionin classInternalProviderInstanceBindingImpl.Factory<Map<K,Provider<V>>> - Returns:
- instance to be injected
-