| Modifier and Type | Method and Description |
|---|---|
Iterator<S> |
iterator()
Note: the iterator may throw the unchecked exception ServiceNotAvailableException on next() if there was a problem instantiating the service.
|
static <S> ServiceLocator<S> |
load(Class<S> spi,
ClassLoader classLoader) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic Iterator<S> iterator()
public static <S> ServiceLocator<S> load(Class<S> spi, ClassLoader classLoader)
S - the type of the servicespi - the interface or abstract base class of services to findclassLoader - used to load /META-INF/services/service.class.name - the thread context classloader is used if one is not suppliedCopyright © 2024 OpenClover.org. All rights reserved.