Package com.google.inject.internal
Class RealMapBinder.RealMapBinderProviderWithDependencies<K,V,P>
- java.lang.Object
-
- com.google.inject.internal.InternalProviderInstanceBindingImpl.Factory<P>
-
- com.google.inject.internal.RealMapBinder.RealMapBinderProviderWithDependencies<K,V,P>
-
- All Implemented Interfaces:
InternalFactory<P>,Provider<P>,HasDependencies,javax.inject.Provider<P>
- Direct Known Subclasses:
RealMapBinder.RealMapProvider,RealMapBinder.RealProviderMapProvider
- Enclosing class:
- RealMapBinder<K,V>
private abstract static class RealMapBinder.RealMapBinderProviderWithDependencies<K,V,P> extends InternalProviderInstanceBindingImpl.Factory<P>
A base class for ProviderWithDependencies that need equality based on a specific object.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) RealMapBinder.BindingSelection<K,V>bindingSelection-
Fields inherited from class com.google.inject.internal.InternalProviderInstanceBindingImpl.Factory
provisionCallback
-
-
Constructor Summary
Constructors Modifier Constructor Description privateRealMapBinderProviderWithDependencies(RealMapBinder.BindingSelection<K,V> bindingSelection)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract voiddoInitialize(InjectorImpl injector, Errors errors)Initialize the factory.booleanequals(java.lang.Object obj)inthashCode()(package private) voidinitialize(InjectorImpl injector, Errors errors)A callback that allows for implementations to fetch dependencies on other bindings.-
Methods inherited from class com.google.inject.internal.InternalProviderInstanceBindingImpl.Factory
doProvision, get, get, getSource
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.google.inject.spi.HasDependencies
getDependencies
-
-
-
-
Field Detail
-
bindingSelection
final RealMapBinder.BindingSelection<K,V> bindingSelection
-
-
Constructor Detail
-
RealMapBinderProviderWithDependencies
private RealMapBinderProviderWithDependencies(RealMapBinder.BindingSelection<K,V> bindingSelection)
-
-
Method Detail
-
initialize
final void initialize(InjectorImpl injector, Errors errors) throws ErrorsException
Description copied from class:InternalProviderInstanceBindingImpl.FactoryA callback that allows for implementations to fetch dependencies on other bindings.Will be called exactly once, prior to any call to
InternalProviderInstanceBindingImpl.Factory.doProvision(com.google.inject.internal.InternalContext, com.google.inject.spi.Dependency<?>).- Specified by:
initializein classInternalProviderInstanceBindingImpl.Factory<P>- Throws:
ErrorsException
-
doInitialize
protected abstract void doInitialize(InjectorImpl injector, Errors errors) throws ErrorsException
Initialize the factory. BindingSelection is guaranteed to be initialized at this point and this will be called prior to any provisioning.- Throws:
ErrorsException
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-