public final class LinkedProviderBindingImpl<T> extends BindingImpl<T> implements ProviderKeyBinding<T>
| Constructor and Description |
|---|
LinkedProviderBindingImpl(Injector injector,
Key<T> key,
Object source,
InternalFactory<? extends T> internalFactory,
Scoping scoping,
Key<? extends Provider<? extends T>> providerKey) |
| Modifier and Type | Method and Description |
|---|---|
<V> V |
acceptTargetVisitor(BindingTargetVisitor<? super T,V> visitor)
Accepts a target visitor.
|
void |
applyTo(Binder binder)
Writes this module element to the given binder (optional operation).
|
Key<? extends Provider<? extends T>> |
getProviderKey()
Returns the key used to resolve the provider's binding.
|
String |
toString() |
BindingImpl<T> |
withKey(Key<T> key) |
BindingImpl<T> |
withScoping(Scoping scoping) |
acceptScopingVisitor, acceptVisitor, getInjector, getInternalFactory, getKey, getProvider, getScoping, getSource, isConstantclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitacceptScopingVisitor, getKey, getProvideracceptVisitor, getSourcepublic <V> V acceptTargetVisitor(BindingTargetVisitor<? super T,V> visitor)
BindingacceptTargetVisitor in interface Binding<T>visitor - to call back onpublic Key<? extends Provider<? extends T>> getProviderKey()
ProviderKeyBindingInjector.getBinding(providerKey)getProviderKey in interface ProviderKeyBinding<T>public BindingImpl<T> withScoping(Scoping scoping)
withScoping in class BindingImpl<T>public BindingImpl<T> withKey(Key<T> key)
withKey in class BindingImpl<T>public void applyTo(Binder binder)
Elementpublic String toString()
toString in class BindingImpl<T>Copyright © 2009–2017. All rights reserved.