public final class ExposedBindingImpl<T> extends BindingImpl<T> implements ExposedBinding<T>
Constructor and Description |
---|
ExposedBindingImpl(com.google.inject.internal.InjectorImpl injector,
Object source,
Key<T> key,
com.google.inject.internal.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.
|
Set<Dependency<?>> |
getDependencies()
Returns the known dependencies for this type.
|
PrivateElements |
getPrivateElements()
Returns the enclosed environment that holds the original binding.
|
String |
toString() |
acceptScopingVisitor, acceptVisitor, getInjector, getInternalFactory, getKey, getProvider, getScoping, getSource, isConstant, withKey, withScoping
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
acceptScopingVisitor, getKey, getProvider
acceptVisitor, getSource
public ExposedBindingImpl(com.google.inject.internal.InjectorImpl injector, Object source, Key<T> key, com.google.inject.internal.InternalFactory<T> factory, PrivateElements privateElements)
public <V> V acceptTargetVisitor(BindingTargetVisitor<? super T,V> visitor)
Binding
acceptTargetVisitor
in interface Binding<T>
visitor
- to call back onpublic Set<Dependency<?>> getDependencies()
HasDependencies
Injector
will be
included in the returned set.getDependencies
in interface HasDependencies
public PrivateElements getPrivateElements()
ExposedBinding
getPrivateElements
in interface ExposedBinding<T>
public String toString()
toString
in class BindingImpl<T>
public void applyTo(Binder binder)
ExposedBinding
UnsupportedOperationException
.applyTo
in interface Element
applyTo
in interface ExposedBinding<T>
binder
- to apply configuration element toCopyright © 2006-2015 Google, Inc.. All Rights Reserved.