public final class LinkedBindingImpl<T> extends BindingImpl<T> implements LinkedKeyBinding <T>, HasDependencies
| Constructor and Description |
|---|
LinkedBindingImpl(com
|
LinkedBindingImpl(Object
|
| Modifier and Type | Method and Description |
|---|---|
<V> V |
acceptTargetVisitor(BindingTargetVisitor
Accepts a target visitor.
|
void |
applyTo(Binder
Writes this module element to the given binder (optional operation).
|
boolean |
equals(Object
|
Set |
getDependencies()
Returns the known dependencies for this type.
|
Key |
getLinkedKey()
Returns the linked key used to resolve injections.
|
int |
hashCode()
|
String |
toString()
|
BindingImpl |
withKey(Key
|
BindingImpl |
withScoping(Scoping
|
acceptScopingVisitor, acceptVisitor, getInjector, getInternalFactory, getKey, getProvider, getScoping, getSource, isConstantclone, finalize, getClass, notify, notifyAll, wait, wait, waitacceptScopingVisitor, getKey, getProvideracceptVisitor, getSourcepublic LinkedBindingImpl(com.inject .internal .InjectorImpl injector, Key <T> key, Object source, com .inject .internal .InternalFactory <? extends T> internalFactory, Scoping scoping, Key <? extends T> targetKey)
public <V> V acceptTargetVisitor(BindingTargetVisitor<? super T ,V> visitor)
Binding
acceptTargetVisitor in interface
Binding<T>
visitor - to call back on
public Key<? extends T> getLinkedKey()
LinkedKeyBinding
Injector.getBinding(key).
public Set<Dependency <?>> getDependencies()
HasDependencies
Injector will be included in the returned set.
getDependencies in interface
HasDependencies
public BindingImpl<T> withScoping(Scoping scoping)
public BindingImpl<T> withKey(Key <T> key)
public void applyTo(Binderbinder)
Element
public StringtoString()
public boolean equals(Objectobj)
public int hashCode()