private static class InjectorImpl.ProviderBindingImpl<T> extends BindingImpl<Provider<T>> implements ProviderBinding<Provider<T>>, HasDependencies
Modifier and Type | Field and Description |
---|---|
(package private) BindingImpl<T> |
providedBinding |
Constructor and Description |
---|
ProviderBindingImpl(InjectorImpl injector,
Key<Provider<T>> key,
Binding<T> providedBinding) |
Modifier and Type | Method and Description |
---|---|
<V> V |
acceptTargetVisitor(BindingTargetVisitor<? super Provider<T>,V> visitor)
Accepts a target visitor.
|
void |
applyTo(Binder binder)
Writes this module element to the given binder (optional operation).
|
(package private) static <T> InternalFactory<Provider<T>> |
createInternalFactory(Binding<T> providedBinding) |
boolean |
equals(java.lang.Object obj) |
java.util.Set<Dependency<?>> |
getDependencies()
Returns the known dependencies for this type.
|
Key<? extends T> |
getProvidedKey()
Returns the key whose binding is used to
provide instances . |
int |
hashCode() |
java.lang.String |
toString() |
acceptScopingVisitor, acceptVisitor, getInjector, getInternalFactory, getKey, getProvider, getScoping, getSource, isConstant, withKey, withScoping
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
acceptScopingVisitor, getKey, getProvider
acceptVisitor, getSource
final BindingImpl<T> providedBinding
static <T> InternalFactory<Provider<T>> createInternalFactory(Binding<T> providedBinding)
public Key<? extends T> getProvidedKey()
ProviderBinding
provide instances
. That binding
can be retrieved from an injector using Injector.getBinding(providedKey)
getProvidedKey
in interface ProviderBinding<Provider<T>>
public <V> V acceptTargetVisitor(BindingTargetVisitor<? super Provider<T>,V> visitor)
Binding
acceptTargetVisitor
in interface Binding<Provider<T>>
visitor
- to call back onpublic void applyTo(Binder binder)
Element
public java.lang.String toString()
toString
in class BindingImpl<Provider<T>>
public java.util.Set<Dependency<?>> getDependencies()
HasDependencies
Injector
will be
included in the returned set.getDependencies
in interface HasDependencies
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object