Binding<T>, Element, LinkedKeyBinding<T>public final class LinkedBindingImpl<T> extends BindingImpl<T> implements LinkedKeyBinding<T>
| Constructor | Description |
|---|---|
LinkedBindingImpl(java.lang.Object source,
Key<T> key,
Scoping scoping,
Key<? extends T> targetKey) |
|
LinkedBindingImpl(Injector injector,
Key<T> key,
java.lang.Object source,
InternalFactory<? extends T> internalFactory,
Scoping scoping,
Key<? extends T> targetKey) |
| Modifier and Type | Method | 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 T> |
getLinkedKey() |
Returns the linked key used to resolve injections.
|
java.lang.String |
toString() |
|
BindingImpl<T> |
withKey(Key<T> key) |
|
BindingImpl<T> |
withScoping(Scoping scoping) |
acceptScopingVisitor, getKey, getProvideracceptScopingVisitor, acceptVisitor, getInjector, getInternalFactory, getKey, getProvider, getScoping, getSource, isConstantacceptVisitor, getSourcepublic LinkedBindingImpl(Injector injector, Key<T> key, java.lang.Object source, InternalFactory<? extends T> internalFactory, Scoping scoping, Key<? extends T> targetKey)
public <V> V acceptTargetVisitor(BindingTargetVisitor<? super T,V> visitor)
BindingacceptTargetVisitor in interface Binding<T>visitor - to call back onpublic Key<? extends T> getLinkedKey()
LinkedKeyBindinggetLinkedKey in interface LinkedKeyBinding<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 java.lang.String toString()
toString in class BindingImpl<T>