Interface ServiceSelectionStrategy<T>

Type Parameters:
T - - The type of the service to be returned.
All Known Implementing Classes:
FirstElementServiceSelectionStrategy

public interface ServiceSelectionStrategy<T>
This interface represents the strategy used by ServiceSelector instances for selecting which service to return from a call to ServiceSelector.getService().
  • Method Summary

    Modifier and Type
    Method
    Description
    org.osgi.framework.ServiceReference<T>
    selectService(SortedSet<org.osgi.framework.ServiceReference<T>> serviceSet)
     
  • Method Details

    • selectService

      org.osgi.framework.ServiceReference<T> selectService(SortedSet<org.osgi.framework.ServiceReference<T>> serviceSet)
      Parameters:
      serviceSet - - An unmodifiable, sorted list of all services bound to the ServiceSelector instance.
      Returns:
      the ServiceReference object that the ServiceSelector should use.