Package com.symphony.bdk.core.util
Class ServiceLookup
java.lang.Object
com.symphony.bdk.core.util.ServiceLookup
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> T
lookupSingleService
(Class<T> clz) Load a service implementation class usingServiceLoader
.
-
Constructor Details
-
ServiceLookup
public ServiceLookup()
-
-
Method Details
-
lookupSingleService
Load a service implementation class usingServiceLoader
.- Returns:
- a service implementation class.
- Throws:
IllegalStateException
- if no implementation or several implementations found in classpath.
-