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, waitgetPrioritypublic <T> java.lang.Object resolve(java.lang.Class<T> dependency)
DependencySourceresolve in interface DependencySourceT - the type to resolvedependency - The class of the dependency to resolvepublic boolean injectRecursively()
DependencySourceinjectRecursively in interface DependencySource