public final class ExposedBindingImpl<T> extends BindingImpl<T> implements ExposedBinding<T>
| Modifier and Type | Field and Description |
|---|---|
private PrivateElements |
privateElements |
| Constructor and Description |
|---|
ExposedBindingImpl(InjectorImpl injector,
java.lang.Object source,
Key<T> key,
InternalFactory<T> factory,
PrivateElements privateElements) |
| Modifier and Type | Method and Description |
|---|---|
<V> V |
acceptTargetVisitor(BindingTargetVisitor<? super T,V> visitor)
Accepts a target visitor.
|
void |
applyTo(Binder binder)
Unsupported.
|
java.util.Set<Dependency<?>> |
getDependencies()
Returns the known dependencies for this type.
|
PrivateElements |
getPrivateElements()
Returns the enclosed environment that holds the original binding.
|
java.lang.String |
toString() |
acceptScopingVisitor, acceptVisitor, getInjector, getInternalFactory, getKey, getProvider, getScoping, getSource, isConstant, withKey, withScopingclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitacceptScopingVisitor, getKey, getProvideracceptVisitor, getSourceprivate final PrivateElements privateElements
public ExposedBindingImpl(InjectorImpl injector, java.lang.Object source, Key<T> key, InternalFactory<T> factory, PrivateElements privateElements)
public <V> V acceptTargetVisitor(BindingTargetVisitor<? super T,V> visitor)
BindingacceptTargetVisitor in interface Binding<T>visitor - to call back onpublic java.util.Set<Dependency<?>> getDependencies()
HasDependenciesInjector will be
included in the returned set.getDependencies in interface HasDependenciespublic PrivateElements getPrivateElements()
ExposedBindinggetPrivateElements in interface ExposedBinding<T>public java.lang.String toString()
toString in class BindingImpl<T>public void applyTo(Binder binder)
ExposedBindingUnsupportedOperationException.applyTo in interface ElementapplyTo in interface ExposedBinding<T>binder - to apply configuration element to