Top Fields Constructors Methods
com.google.inject.internal

pack-priv final Class ExposedBindingImpl<T>

extends BindingImpl<T>
implements ExposedBinding<T>
Class Inheritance
All Implemented Interfaces
com.google.inject.spi.ExposedBinding, com.google.inject.spi.HasDependencies, com.google.inject.Binding, com.google.inject.spi.Element
Imports
com.google.common.base.MoreObjects, com.google.common.collect.ImmutableSet, com.google.inject.Binder, .Injector, .Key, com.google.inject.spi.BindingTargetVisitor, .Dependency, .ExposedBinding, .PrivateElements, java.util.Set

Field Summary

Modifier and TypeField and Description
private final PrivateElements

Constructor Summary

AccessConstructor and Description
pack-priv
ExposedBindingImpl(InjectorImpl injector, Object source, Key<T> key, InternalFactory<T> factory, PrivateElements privateElements)

Method Summary

Modifier and TypeMethod and Description
public <V> V
acceptTargetVisitor(BindingTargetVisitor<? super T, V>
to call back on
visitor
)

Implements com.google.inject.Binding.acceptTargetVisitor.

Accepts a target visitor.
public void
applyTo(Binder
to apply configuration element to
binder
)

Implements com.google.inject.spi.ExposedBinding.applyTo, com.google.inject.spi.Element.applyTo.

Unsupported.
public Set<Dependency<?>>
getDependencies()

Implements com.google.inject.spi.HasDependencies.getDependencies.

Returns the known dependencies for this type.
public PrivateElements
getPrivateElements()

Implements com.google.inject.spi.ExposedBinding.getPrivateElements.

Returns the enclosed environment that holds the original binding.
public String
toString()

Overrides com.google.inject.internal.BindingImpl.toString.

Returns a string representation of the object.
Inherited from com.google.inject.internal.BindingImpl:
acceptScopingVisitoracceptVisitorgetInjectorgetInternalFactorygetKeygetProvidergetScopinggetSourceisConstantwithKeywithScoping

Field Detail

privateElementsback to summary
private final PrivateElements privateElements

Constructor Detail

ExposedBindingImplback to summary
pack-priv ExposedBindingImpl(InjectorImpl injector, Object source, Key<T> key, InternalFactory<T> factory, PrivateElements privateElements)

Method Detail

acceptTargetVisitorback to summary
public <V> V acceptTargetVisitor(BindingTargetVisitor<? super T, V> visitor)

Implements com.google.inject.Binding.acceptTargetVisitor.

Doc from com.google.inject.Binding.acceptTargetVisitor.

Accepts a target visitor. Invokes the visitor method specific to this binding's target.

Parameters
visitor:BindingTargetVisitor<? super T, V>

to call back on

Annotations
@Override
applyToback to summary
public void applyTo(Binder binder)

Implements com.google.inject.spi.ExposedBinding.applyTo, com.google.inject.spi.Element.applyTo.

Doc from com.google.inject.spi.ExposedBinding.applyTo.

Unsupported. Always throws UnsupportedOperationException.

Parameters
binder:Binder

Doc from com.google.inject.spi.Element.applyTo.

to apply configuration element to

Annotations
@Override
getDependenciesback to summary
public Set<Dependency<?>> getDependencies()

Implements com.google.inject.spi.HasDependencies.getDependencies.

Doc from com.google.inject.spi.HasDependencies.getDependencies.

Returns the known dependencies for this type. If this has dependencies whose values are not known statically, a dependency for the Injector will be included in the returned set.

Returns:Set<Dependency<?>>

a possibly empty set

Annotations
@Override
getPrivateElementsback to summary
public PrivateElements getPrivateElements()

Implements com.google.inject.spi.ExposedBinding.getPrivateElements.

Doc from com.google.inject.spi.ExposedBinding.getPrivateElements.

Returns the enclosed environment that holds the original binding.

Annotations
@Override
toStringback to summary
public String toString()

Overrides com.google.inject.internal.BindingImpl.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object

Annotations
@Override