Class Services

java.lang.Object
org.linkki.util.service.Services

public final class Services extends Object
Helper for ServiceLoader access.
  • Method Details

    • 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