java.lang.Object | |
↳ | com.google.inject.spi.DependencyAndSource |
A combination of a Dependency
and the source
where the dependency was bound.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns a string describing where this dependency was bound.
| |||||||||||
Returns the Dependency, if one exists.
| |||||||||||
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Returns a string describing where this dependency was bound. If the binding was just-in-time, there is no valid binding source, so this describes the class in question.
Returns the Dependency, if one exists. For anything that can be referenced by Injector#getBinding, a dependency exists. A dependency will not exist (and this will return null) for types initialized with Binder#requestInjection or {@link Injector#injectMembers(Object), nor will it exist for objects injected into Providers bound with LinkedBindingBuilder#toProvider(Provider).