@API(status=INTERNAL)
public class ServiceLookup
extends java.lang.Object
Constructor and Description |
---|
ServiceLookup() |
Modifier and Type | Method and Description |
---|---|
static <T> T |
lookupSingleService(java.lang.Class<T> clz)
Load a service implementation class using
ServiceLoader . |
public static <T> T lookupSingleService(java.lang.Class<T> clz)
ServiceLoader
.java.lang.IllegalStateException
- if no implementation or several implementations found in classpath.