Top Description Methods
com.google.inject.spi

public Interface InstanceBinding<T>

extends Binding<T>, HasDependencies
Known Direct Implementers
com.google.inject.internal.InstanceBindingImpl
Imports
com.google.inject.Binding, java.util.Set

A binding to a single instance. The same instance is returned for every injection.
Author
[email protected] (Jesse Wilson)
Since
2.0

Method Summary

Modifier and TypeMethod and Description
public Set<InjectionPoint>

Returns:

a possibly empty set
getInjectionPoints
()

Returns the field and method injection points of the instance, injected at injector-creation time only.

public T
getInstance()

Returns the user-supplied instance.

Inherited from com.google.inject.Binding:
acceptScopingVisitoracceptTargetVisitorgetKeygetProvider
Inherited from com.google.inject.spi.HasDependencies:
getDependencies

Method Detail

getInjectionPointsback to summary
public Set<InjectionPoint> getInjectionPoints()

Returns the field and method injection points of the instance, injected at injector-creation time only.

Returns:Set<InjectionPoint>

a possibly empty set

getInstanceback to summary
public T getInstance()

Returns the user-supplied instance.