ProvisionListener.ProvisionInvocation.getDependencyChain()
which is also deprecated. This
object will also be removed in Guice 4.4.@Deprecated public final class DependencyAndSource extends Object
Dependency
and the source
where the
dependency was bound.Constructor and Description |
---|
DependencyAndSource(Dependency<?> dependency,
Object source)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
String |
getBindingSource()
Deprecated.
Returns a string describing where this dependency was bound.
|
Dependency<?> |
getDependency()
Deprecated.
Returns the Dependency, if one exists.
|
String |
toString()
Deprecated.
|
public DependencyAndSource(Dependency<?> dependency, Object source)
public Dependency<?> getDependency()
Injector.getBinding(com.google.inject.Key<T>)
, a dependency exists. A dependency will not exist (and this will return
null) for types initialized with Binder.requestInjection(com.google.inject.TypeLiteral<T>, T)
or Injector.injectMembers(Object)
, nor will it exist for objects injected into Providers bound
with LinkedBindingBuilder#toProvider(Provider).public String getBindingSource()
Copyright © 2006–2018 Google, Inc.. All rights reserved.