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
FieldsFields inherited from class com.google.inject.internal.InternalProviderInstanceBindingImpl.Factory
provisionCallback -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateRealMapBinderProviderWithDependencies(RealMapBinder.BindingSelection<K, V> bindingSelection) -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract voiddoInitialize(InjectorImpl injector, Errors errors) Initialize the factory.booleaninthashCode()(package private) final 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, getSourceMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.google.inject.spi.HasDependencies
getDependencies
-
Field Details
-
bindingSelection
-
-
Constructor Details
-
RealMapBinderProviderWithDependencies
-
-
Method Details
-
initialize
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
Initialize the factory. BindingSelection is guaranteed to be initialized at this point and this will be called prior to any provisioning.- Throws:
ErrorsException
-
equals
-
hashCode
public int hashCode()
-