Package org.linkki.util.service
Class Services
java.lang.Object
org.linkki.util.service.Services
Helper for
ServiceLoader access.-
Method Summary
Modifier and TypeMethodDescriptionstatic <S> SFinds the single implementation of the service class viaServiceLoader.
-
Method Details
-
get
Finds the single implementation of the service class viaServiceLoader.- Returns:
- the service instance
- Throws:
IllegalStateException- if there is no or more than one implementation available
-