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> VacceptTargetVisitor(BindingTargetVisitor<? super Provider<T>, V> visitor) Accepts a target visitor.voidWrites this module element to the given binder (optional operation).(package private) static <T> InternalFactory<Provider<T>> createInternalFactory(Binding<T> providedBinding) booleanSet<Dependency<?>> Returns the known dependencies for this type.Returns the key whose binding is used toprovide instances.inthashCode()toString()Methods inherited from class com.google.inject.internal.BindingImpl
acceptScopingVisitor, acceptVisitor, getInjector, getInternalFactory, getKey, getProvider, getScoping, getSource, isConstant, withKey, withScopingMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.inject.Binding
acceptScopingVisitor, getKey, getProviderMethods inherited from interface com.google.inject.spi.Element
acceptVisitor, getSource
-
Field Details
-
providedBinding
-
-
Constructor Details
-
SyntheticProviderBindingImpl
-
-
Method Details
-
createInternalFactory
-
getProvidedKey
Description copied from interface:ProviderBindingReturns the key whose binding is used toprovide instances. That binding can be retrieved from an injector usingInjector.getBinding(providedKey)- Specified by:
getProvidedKeyin interfaceProviderBinding<T>
-
acceptTargetVisitor
Description copied from interface:BindingAccepts a target visitor. Invokes the visitor method specific to this binding's target.- Specified by:
acceptTargetVisitorin interfaceBinding<T>- Parameters:
visitor- to call back on
-
applyTo
Description copied from interface:ElementWrites this module element to the given binder (optional operation). -
toString
- Overrides:
toStringin classBindingImpl<Provider<T>>
-
getDependencies
Description copied from interface:HasDependenciesReturns the known dependencies for this type. If this has dependencies whose values are not known statically, a dependency for theInjectorwill be included in the returned set.- Specified by:
getDependenciesin interfaceHasDependencies- Returns:
- a possibly empty set
-
equals
-
hashCode
public int hashCode()
-