public static interface DependencyResolver.SelectionStrategy
<T> T select(Class<T> type, Iterable<T> candidates) throws IllegalArgumentException
IllegalArgumentException
if there was no suitable candidate.type
- 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–2014 The Neo4j Graph Database Project. All rights reserved.