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> 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 DependencyResolvertype - the type of Class that the returned instance must implement.IllegalArgumentException - if no matching dependency was found.Copyright © 2002–2015 The Neo4j Graph Database Project. All rights reserved.