DependencyResolver.SelectionStrategy (Neo4j Community 2.1.0-M01 API)
Date: 2014-02-20

org.neo4j.graphdb

## Interface DependencyResolver.SelectionStrategy

- Enclosing interface:
    DependencyResolver

      public static interface DependencyResolver.SelectionStrategy

  Responsible for making the choice between available candidates.

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `<T> T` | `select(Class<T> type, Iterable<T> candidates)` Given a set of candidates, select an appropriate one.

- - ### Method Detail

    - #### select

          <T> 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–2014 The Neo4j Graph Database Project. All rights reserved.