private abstract static class RealMapBinder.RealMultimapBinderProviderWithDependencies<K,V,P> extends InternalProviderInstanceBindingImpl.Factory<P>
This differs from RealMapBinder.RealMapBinderProviderWithDependencies
in that it gets the bindingSelection
from the injector at initialization time, rather than in the constructor.
This is done to allow all the providers to operate on the same instance of the RealMapBinder.BindingSelection
.
Modifier and Type | Field and Description |
---|---|
(package private) RealMapBinder.BindingSelection<K,V> |
bindingSelection |
(package private) Key<java.util.Map<K,V>> |
mapKey |
provisionCallback
Modifier | Constructor and Description |
---|---|
private |
RealMultimapBinderProviderWithDependencies(Key<java.util.Map<K,V>> mapKey) |
Modifier and Type | Method and Description |
---|---|
(package private) abstract void |
doInitialize(InjectorImpl injector,
Errors errors)
Initialize the factory.
|
boolean |
equals(java.lang.Object obj) |
int |
hashCode() |
(package private) void |
initialize(InjectorImpl injector,
Errors errors)
This will get the authoritative
RealMapBinder.BindingSelection from the map provider. |
doProvision, get, get, getSource
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
getDependencies
RealMapBinder.BindingSelection<K,V> bindingSelection
final void initialize(InjectorImpl injector, Errors errors) throws ErrorsException
RealMapBinder.BindingSelection
from the map provider. This
guarantees that everyone has the same instance of the bindingSelection and sees consistent
state.initialize
in class InternalProviderInstanceBindingImpl.Factory<P>
ErrorsException
abstract void doInitialize(InjectorImpl injector, Errors errors) throws ErrorsException
ErrorsException
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object