public class ReflectionDependencySource extends java.lang.Object implements DependencySource
| Constructor and Description |
|---|
ReflectionDependencySource() |
| Modifier and Type | Method and Description |
|---|---|
int |
getPriority()
Dependency sources are called in ascending order
based of their priority.
|
<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, waitinjectRecursivelypublic <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 int getPriority()
DependencySourceDependency sources are called in ascending order based of their priority. The first dependency source that resolves a non-null value is selected as the dependency source.
getPriority in interface DependencySource