org.neo4j.graphdb
Interface DependencyResolver.SelectionStrategy<T>
- Enclosing interface:
- DependencyResolver
public static interface DependencyResolver.SelectionStrategy<T>
Responsible for making the choice between available candidates.
Method Summary |
T |
select(Class<T> type,
Iterable<T> candidates)
Given a set of candidates, select an appropriate one. |
select
T select(Class<T> type,
Iterable<T> candidates)
throws IllegalArgumentException
- Given a set of candidates, select an appropriate one. Even if there are candidates this
method may throw
IllegalArgumentException
if there was no suitable candidate.
- Parameters:
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.
- Returns:
- a suitable candidate among all available.
- Throws:
IllegalArgumentException
- if no suitable candidate was found.
Copyright © 2002-2013 The Neo4j Graph Database Project. All Rights Reserved.