|
Neo4j Community | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface DependencyResolver
Find a dependency given a type. This can be the exact type or a super type of the actual dependency.
| Nested Class Summary | |
|---|---|
static class |
DependencyResolver.Adapter
Adapter for DependencyResolver which will select the first available candidate by default
for DependencyResolver.Adapter.resolveDependency(Class). |
static interface |
DependencyResolver.SelectionStrategy<T>
Responsible for making the choice between available candidates. |
| Method Summary | ||
|---|---|---|
|
resolveDependency(Class<T> type)
Tries to resolve a dependency that matches a given class. |
|
|
resolveDependency(Class<T> type,
DependencyResolver.SelectionStrategy<T> selector)
Tries to resolve a dependency that matches a given class. |
|
| Method Detail |
|---|
<T> T resolveDependency(Class<T> type)
throws IllegalArgumentException
DependencyResolver.SelectionStrategy is used, so the first encountered matching dependency will be returned.
type - the type of Class that the returned instance must implement.
IllegalArgumentException - if no matching dependency was found.
<T> T resolveDependency(Class<T> type,
DependencyResolver.SelectionStrategy<T> selector)
throws IllegalArgumentException
selector which ultimately becomes responsible for making the choice between all available candidates.
type - the type of Class that the returned instance must implement.selector - DependencyResolver.SelectionStrategy which will make the choice of which one to return among
matching candidates.
IllegalArgumentException - if no matching dependency was found.
|
Neo4j Community | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||