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,java.util.Map<K,Provider<V>>>
-
- com.google.inject.internal.RealMapBinder.RealProviderMapProvider<K,V>
-
- All Implemented Interfaces:
InternalFactory<java.util.Map<K,Provider<V>>>
,Provider<java.util.Map<K,Provider<V>>>
,HasDependencies
,javax.inject.Provider<java.util.Map<K,Provider<V>>>
- Enclosing class:
- RealMapBinder<K,V>
private static final class RealMapBinder.RealProviderMapProvider<K,V> extends RealMapBinder.RealMapBinderProviderWithDependencies<K,V,java.util.Map<K,Provider<V>>>
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Set<Dependency<?>>
dependencies
private java.util.Map<K,Provider<V>>
mapOfProviders
-
Fields inherited from class com.google.inject.internal.RealMapBinder.RealMapBinderProviderWithDependencies
bindingSelection
-
Fields inherited from class com.google.inject.internal.InternalProviderInstanceBindingImpl.Factory
provisionCallback
-
-
Constructor Summary
Constructors Modifier Constructor Description private
RealProviderMapProvider(RealMapBinder.BindingSelection<K,V> bindingSelection)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
doInitialize(InjectorImpl injector, Errors errors)
Initialize the factory.protected java.util.Map<K,Provider<V>>
doProvision(InternalContext context, Dependency<?> dependency)
Creates an object to be injected.java.util.Set<Dependency<?>>
getDependencies()
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 Detail
-
dependencies
private java.util.Set<Dependency<?>> dependencies
-
-
Constructor Detail
-
RealProviderMapProvider
private RealProviderMapProvider(RealMapBinder.BindingSelection<K,V> bindingSelection)
-
-
Method Detail
-
getDependencies
public java.util.Set<Dependency<?>> 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
protected void doInitialize(InjectorImpl injector, Errors errors)
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,java.util.Map<K,Provider<V>>>
-
doProvision
protected java.util.Map<K,Provider<V>> 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.Map<K,Provider<V>>>
- Returns:
- instance to be injected
-
-