Package com.google.inject.internal
Class InjectorImpl.SyntheticProviderBindingImpl<T>
java.lang.Object
com.google.inject.internal.BindingImpl<Provider<T>>
com.google.inject.internal.InjectorImpl.SyntheticProviderBindingImpl<T>
- All Implemented Interfaces:
Binding<Provider<T>>
,Element
,HasDependencies
,ProviderBinding<Provider<T>>
- Enclosing class:
InjectorImpl
private static class InjectorImpl.SyntheticProviderBindingImpl<T>
extends BindingImpl<Provider<T>>
implements ProviderBinding<Provider<T>>, HasDependencies
A framework-created JIT Provider binding.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSyntheticProviderBindingImpl
(InjectorImpl injector, Key<Provider<T>> key, Binding<T> providedBinding) -
Method Summary
Modifier and TypeMethodDescription<V> V
acceptTargetVisitor
(BindingTargetVisitor<? super Provider<T>, V> visitor) Accepts a target visitor.void
Writes this module element to the given binder (optional operation).(package private) static <T> InternalFactory
<Provider<T>> createInternalFactory
(Binding<T> providedBinding) boolean
Set
<Dependency<?>> Returns the known dependencies for this type.Returns the key whose binding is used toprovide instances
.int
hashCode()
toString()
Methods inherited from class com.google.inject.internal.BindingImpl
acceptScopingVisitor, acceptVisitor, getInjector, getInternalFactory, getKey, getProvider, getScoping, getSource, isConstant, withKey, withScoping
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.google.inject.Binding
acceptScopingVisitor, getKey, getProvider
Methods inherited from interface com.google.inject.spi.Element
acceptVisitor, getSource
-
Field Details
-
providedBinding
-
-
Constructor Details
-
SyntheticProviderBindingImpl
-
-
Method Details
-
createInternalFactory
-
getProvidedKey
Description copied from interface:ProviderBinding
Returns the key whose binding is used toprovide instances
. That binding can be retrieved from an injector usingInjector.getBinding(providedKey)
- Specified by:
getProvidedKey
in interfaceProviderBinding<T>
-
acceptTargetVisitor
Description copied from interface:Binding
Accepts a target visitor. Invokes the visitor method specific to this binding's target.- Specified by:
acceptTargetVisitor
in interfaceBinding<T>
- Parameters:
visitor
- to call back on
-
applyTo
Description copied from interface:Element
Writes this module element to the given binder (optional operation). -
toString
- Overrides:
toString
in classBindingImpl<Provider<T>>
-
getDependencies
Description copied from interface:HasDependencies
Returns the known dependencies for this type. If this has dependencies whose values are not known statically, a dependency for theInjector
will be included in the returned set.- Specified by:
getDependencies
in interfaceHasDependencies
- Returns:
- a possibly empty set
-
equals
-
hashCode
public int hashCode()
-