public final 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
IOException
Copyright © 2004–2018 The Apache Software Foundation. All rights reserved.