R - The type of resource this selector is selectingC - The type of context which this selector will accept. Must extend ResourceSelectionContext@Validated
public interface ResourceSelector<R,C extends ResourceSelectionContext<R>>
| Modifier and Type | Method and Description |
|---|---|
ResourceSelectionResult<R> |
select(C context)
Select a resource from the given set of resources if possible.
|
ResourceSelectionResult<R> select(@Valid C context) throws ResourceSelectionException
context - The context specific for this resource selectionResourceSelectionResult instance which contains information about the result of this
invocationResourceSelectionException - When the underlying implementation can't successfully come to a selection
decision