java.lang.Object | |
↳ | com.google.inject.spi.Dependency<T> |
A variable that can be resolved by an injector.
Use get(Key
to build a freestanding dependency, or InjectionPoint
to build one
that's attached to a constructor, method or field.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns the dependencies from the given injection points.
| |||||||||||
Returns a new dependency that is not attached to an injection point.
| |||||||||||
Returns the injection point to which this dependency belongs, or null if this dependency isn't
attached to a particular injection point.
| |||||||||||
Returns the key to the binding that satisfies this dependency.
| |||||||||||
Returns the index of this dependency in the injection point's parameter list, or
-1 if
this dependency does not belong to a parameter list. | |||||||||||
Returns true if null is a legal value for this dependency.
| |||||||||||
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Returns the dependencies from the given injection points.
Returns a new dependency that is not attached to an injection point. The returned dependency is nullable.
Returns the injection point to which this dependency belongs, or null if this dependency isn't attached to a particular injection point.
Returns the key to the binding that satisfies this dependency.
Returns the index of this dependency in the injection point's parameter list, or -1
if
this dependency does not belong to a parameter list. Only method and constuctor dependencies
are elements in a parameter list.
Returns true if null is a legal value for this dependency.