Class Services

    • Method Detail

      • get

        public static <S> S get​(Class<S> serviceClass)
        Finds the single implementation of the service class via ServiceLoader.
        Returns:
        the service instance
        Throws:
        IllegalStateException - if there is no or more than one implementation available