private static final class RealMapBinder.MultimapBinder.RealMultimapProvider<K,V> extends RealMapBinder.RealMultimapBinderProviderWithDependencies<K,V,java.util.Map<K,java.util.Set<V>>>
Modifier and Type | Class and Description |
---|---|
private static class |
RealMapBinder.MultimapBinder.RealMultimapProvider.PerKeyData<K,V>
A simple class to hold a key and the associated bindings as an array.
|
Modifier and Type | Field and Description |
---|---|
private java.util.Set<Dependency<?>> |
dependencies |
private RealMapBinder.MultimapBinder.RealMultimapProvider.PerKeyData<K,V>[] |
perKeyDatas |
bindingSelection, mapKey
provisionCallback
Modifier | Constructor and Description |
---|---|
private |
RealMultimapProvider(Key<java.util.Map<K,V>> mapKey) |
Modifier and Type | Method and Description |
---|---|
protected void |
doInitialize(InjectorImpl injector,
Errors errors)
Initialize the factory.
|
protected java.util.Map<K,java.util.Set<V>> |
doProvision(InternalContext context,
Dependency<?> dependency)
Creates an object to be injected.
|
java.util.Set<Dependency<?>> |
getDependencies()
Returns the known dependencies for this type.
|
equals, hashCode, initialize
get, get, getSource
private java.util.Set<Dependency<?>> dependencies
private RealMapBinder.MultimapBinder.RealMultimapProvider.PerKeyData<K,V>[] perKeyDatas
public java.util.Set<Dependency<?>> getDependencies()
HasDependencies
Injector
will be
included in the returned set.protected void doInitialize(InjectorImpl injector, Errors errors) throws ErrorsException
RealMapBinder.RealMultimapBinderProviderWithDependencies
doInitialize
in class RealMapBinder.RealMultimapBinderProviderWithDependencies<K,V,java.util.Map<K,java.util.Set<V>>>
ErrorsException
protected java.util.Map<K,java.util.Set<V>> doProvision(InternalContext context, Dependency<?> dependency) throws InternalProvisionException
InternalProviderInstanceBindingImpl.Factory
doProvision
in class InternalProviderInstanceBindingImpl.Factory<java.util.Map<K,java.util.Set<V>>>
InternalProvisionException
- if a value cannot be provided