Interface IServiceSelector<T>

    • Method Detail

      • getType

        java.lang.Class<T> getType()
        Returns:
        The type this selector can process
      • loadService

        default T loadService​(java.util.ServiceLoader.Provider<T> provider)
        Load the provided service. If the service can't be loaded for any reason, this method should return null
        Parameters:
        provider - The provider to be loaded
        Returns:
        The loaded service
      • getBestService

        T getBestService​(java.util.Collection<T> implementations)
        Determines the best implementation ofg a service and returns it
        Parameters:
        implementations - All discovered service implementations
        Returns:
        The best service implementation