public class ArrayDependencySource extends java.lang.Object implements DependencySource
Constructor and Description |
---|
ArrayDependencySource(java.lang.Object[] objects) |
Modifier and Type | Method and Description |
---|---|
boolean |
injectRecursively()
Indicates if the last returned dependency should
have its fields be resolved by the dependency injector
or not.
|
<T> java.lang.Object |
resolve(java.lang.Class<T> dependency)
Resolves given dependency (if possible).
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getPriority
public <T> java.lang.Object resolve(java.lang.Class<T> dependency)
DependencySource
resolve
in interface DependencySource
T
- the type to resolvedependency
- The class of the dependency to resolvepublic boolean injectRecursively()
DependencySource
injectRecursively
in interface DependencySource