public abstract static class DependencyResolver.Adapter extends Object implements DependencyResolver
DependencyResolver which will select the first available candidate by default
for resolveDependency(Class).DependencyResolver.Adapter, DependencyResolver.SelectionStrategy| Constructor and Description |
|---|
DependencyResolver.Adapter() |
| Modifier and Type | Method and Description |
|---|---|
<T> org.neo4j.function.Supplier<T> |
provideDependency(Class<T> type) |
<T> org.neo4j.function.Supplier<T> |
provideDependency(Class<T> type,
DependencyResolver.SelectionStrategy selector) |
<T> T |
resolveDependency(Class<T> type)
Tries to resolve a dependency that matches a given class.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitresolveDependencypublic <T> T resolveDependency(Class<T> type) throws IllegalArgumentException
DependencyResolverDependencyResolver.SelectionStrategy is used, so the first encountered matching dependency will be returned.resolveDependency in interface DependencyResolverT - the type that the returned instance must implementtype - the type of Class that the returned instance must implement.IllegalArgumentException - if no matching dependency was found.public <T> org.neo4j.function.Supplier<T> provideDependency(Class<T> type, DependencyResolver.SelectionStrategy selector)
provideDependency in interface DependencyResolverpublic <T> org.neo4j.function.Supplier<T> provideDependency(Class<T> type)
provideDependency in interface DependencyResolverCopyright © 2002–2016 The Neo4j Graph Database Project. All rights reserved.