Package com.google.inject.internal
Class RealOptionalBinder.RealOptionalBinderProviderWithDependencies<T,P>
java.lang.Object
com.google.inject.internal.InternalProviderInstanceBindingImpl.Factory<P>
com.google.inject.internal.RealOptionalBinder.RealOptionalBinderProviderWithDependencies<T,P>
- All Implemented Interfaces:
InternalFactory<P>
,Provider<P>
,HasDependencies
,javax.inject.Provider<P>
- Direct Known Subclasses:
RealOptionalBinder.JavaOptionalProvider
,RealOptionalBinder.JavaOptionalProviderProvider
,RealOptionalBinder.RealDirectTypeProvider
,RealOptionalBinder.RealOptionalKeyProvider
,RealOptionalBinder.RealOptionalProviderProvider
- Enclosing class:
- RealOptionalBinder<T>
private abstract static class RealOptionalBinder.RealOptionalBinderProviderWithDependencies<T,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
ConstructorsConstructorDescriptionRealOptionalBinderProviderWithDependencies
(RealOptionalBinder.BindingSelection<T> bindingSelection) -
Method Summary
Modifier and TypeMethodDescription(package private) abstract void
Initialize the factory.boolean
int
hashCode()
(package private) final void
initialize
(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 Details
-
bindingSelection
-
-
Constructor Details
-
RealOptionalBinderProviderWithDependencies
RealOptionalBinderProviderWithDependencies(RealOptionalBinder.BindingSelection<T> bindingSelection)
-
-
Method Details
-
initialize
Description copied from class:InternalProviderInstanceBindingImpl.Factory
A 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:
initialize
in classInternalProviderInstanceBindingImpl.Factory<P>
- Throws:
ErrorsException
-
doInitialize
abstract void doInitialize()Initialize the factory. BindingSelection is guaranteed to be initialized at this point and this will be called prior to any provisioning. -
equals
-
hashCode
public int hashCode()
-