Class ServiceLookup

java.lang.Object
com.symphony.bdk.core.util.ServiceLookup

@API(status=INTERNAL) public class ServiceLookup extends Object
  • Constructor Details

    • ServiceLookup

      public ServiceLookup()
  • Method Details

    • lookupSingleService

      public static <T> T lookupSingleService(Class<T> clz)
      Load a service implementation class using ServiceLoader.
      Returns:
      a service implementation class.
      Throws:
      IllegalStateException - if no implementation or several implementations found in classpath.