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, wait
injectRecursively
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 int getPriority()
DependencySource
Dependency 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