@Component(role=ServiceLoader.class) public class ServiceLoader extends Object
current ClassLoader.
ServiceLoader embedded in JVM uses
System ClassLoader and cannot be used in Surefire/Failsafe.| Constructor and Description |
|---|
ServiceLoader() |
| Modifier and Type | Method and Description |
|---|---|
<T> Set<T> |
load(Class<T> clazz,
ClassLoader classLoader) |
Set<String> |
lookup(Class<?> clazz,
ClassLoader classLoader) |
@Nonnull public <T> Set<T> load(Class<T> clazz, ClassLoader classLoader)
@Nonnull public Set<String> lookup(Class<?> clazz, ClassLoader classLoader) throws IOException
IOExceptionCopyright © 2004–2024 The Apache Software Foundation. All rights reserved.