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, mapKeyprovisionCallback| 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, initializeget, get, getSourceprivate java.util.Set<Dependency<?>> dependencies
private RealMapBinder.MultimapBinder.RealMultimapProvider.PerKeyData<K,V>[] perKeyDatas
public java.util.Set<Dependency<?>> getDependencies()
HasDependenciesInjector will be
included in the returned set.protected void doInitialize(InjectorImpl injector, Errors errors) throws ErrorsException
RealMapBinder.RealMultimapBinderProviderWithDependenciesdoInitialize in class RealMapBinder.RealMultimapBinderProviderWithDependencies<K,V,java.util.Map<K,java.util.Set<V>>>ErrorsExceptionprotected java.util.Map<K,java.util.Set<V>> doProvision(InternalContext context, Dependency<?> dependency) throws InternalProvisionException
InternalProviderInstanceBindingImpl.FactorydoProvision in class InternalProviderInstanceBindingImpl.Factory<java.util.Map<K,java.util.Set<V>>>InternalProvisionException - if a value cannot be provided