public static interface DependencyResolver.SelectionStrategy
Modifier and Type | Field and Description |
---|---|
static DependencyResolver.SelectionStrategy |
FIRST |
static DependencyResolver.SelectionStrategy |
ONLY
Returns the one and only dependency, or throws.
|
Modifier and Type | Method and Description |
---|---|
<T> T |
select(Class<T> type,
Iterable<? extends T> candidates)
Given a set of candidates, select an appropriate one.
|
static final DependencyResolver.SelectionStrategy FIRST
static final DependencyResolver.SelectionStrategy ONLY
<T> T select(Class<T> type, Iterable<? extends T> candidates) throws IllegalArgumentException
IllegalArgumentException
if there was no suitable candidate.T
- the type of itemstype
- the type of items.candidates
- candidates up for selection, where one should be picked. There might
also be no suitable candidate, in which case an exception should be thrown.IllegalArgumentException
- if no suitable candidate was found.Copyright © 2002–2018 The Neo4j Graph Database Project. All rights reserved.