Binding<T>
, Element
, ExposedBinding<T>
, HasDependencies
public class ExposedBindingImpl<T> extends BindingImpl<T> implements ExposedBinding<T>
Constructor | Description |
---|---|
ExposedBindingImpl(java.lang.Object source,
Key<T> key,
Scoping scoping,
PrivateElements privateElements) |
|
ExposedBindingImpl(Injector injector,
java.lang.Object source,
Key<T> key,
InternalFactory<T> factory,
PrivateElements privateElements) |
Modifier and Type | Method | 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() |
|
ExposedBindingImpl<T> |
withKey(Key<T> key) |
|
BindingImpl<T> |
withScoping(Scoping scoping) |
acceptScopingVisitor, getKey, getProvider
acceptScopingVisitor, acceptVisitor, getInjector, getInternalFactory, getKey, getProvider, getScoping, getSource, isConstant
acceptVisitor, getSource
public ExposedBindingImpl(Injector injector, java.lang.Object source, Key<T> key, InternalFactory<T> factory, PrivateElements privateElements)
public ExposedBindingImpl(java.lang.Object source, Key<T> key, Scoping scoping, PrivateElements privateElements)
public <V> V acceptTargetVisitor(BindingTargetVisitor<? super T,V> visitor)
Binding
acceptTargetVisitor
in interface Binding<T>
visitor
- to call back onpublic java.util.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 BindingImpl<T> withScoping(Scoping scoping)
withScoping
in class BindingImpl<T>
public ExposedBindingImpl<T> withKey(Key<T> key)
withKey
in class BindingImpl<T>
public java.lang.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 to