public interface DependencySource
DependencyInjector
to resolve dependencies.Modifier and Type | Method and Description |
---|---|
default int |
getPriority()
Dependency sources are called in ascending order
based of their priority.
|
default 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).
|
<T> java.lang.Object resolve(java.lang.Class<T> dependency)
T
- the type to resolvedependency
- The class of the dependency to resolvedefault int getPriority()
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.
default boolean injectRecursively()