T - - The type of the service to be returned. ServiceSelectionStrategypublic class FirstElementServiceSelectionStrategy<T> extends Object implements ServiceSelectionStrategy<T>
| Constructor and Description |
|---|
FirstElementServiceSelectionStrategy() |
| Modifier and Type | Method and Description |
|---|---|
org.osgi.framework.ServiceReference<T> |
selectService(SortedSet<org.osgi.framework.ServiceReference<T>> serviceSet) |
public FirstElementServiceSelectionStrategy()
public org.osgi.framework.ServiceReference<T> selectService(SortedSet<org.osgi.framework.ServiceReference<T>> serviceSet)
selectService in interface ServiceSelectionStrategy<T>serviceSet - - An unmodifiable, sorted list of all services bound to the ServiceSelector
instance.This work is licensed under a Creative Commons Attribution 4.0 International License.