| Constructor and Description |
|---|
PreferredObjectSelector() |
| Modifier and Type | Method and Description |
|---|---|
T |
select(Iterator<T> iterator)
Selects a preferred object from instances returned by an
Iterator. |
public T select(Iterator<T> iterator)
Iterator.
The preferred instance will be the instance annotated with Preferred annotation with the highest weight attribute if
there is any, or a non annotated class otherwise.iterator - contains the objects to select fromCopyright © 2003–2017 MuleSoft, Inc.. All rights reserved.