Class AbstractComparableServiceSelector<T>

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      T getBestService​(java.util.Collection<T> implementations)
      Determines the best implementation ofg a service and returns it
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AbstractComparableServiceSelector

        public AbstractComparableServiceSelector​(java.util.Comparator<T> comparator)
    • Method Detail

      • getBestService

        public final T getBestService​(java.util.Collection<T> implementations)
        Description copied from interface: IServiceSelector
        Determines the best implementation ofg a service and returns it
        Specified by:
        getBestService in interface IServiceSelector<T>
        Parameters:
        implementations - All discovered service implementations
        Returns:
        The best service implementation