public class ProviderDetector
extends java.lang.Object
| Constructor and Description |
|---|
ProviderDetector() |
| Modifier and Type | Method and Description |
|---|---|
private static java.util.Set<java.lang.String> |
getNames(java.util.Enumeration<java.net.URL> urlEnumeration)
Method loadServices loads the services of a class that are
defined using the SPI mechanism.
|
private static java.io.BufferedReader |
getReader(java.net.URL url) |
static java.util.Set<java.lang.String> |
getServiceNames(java.lang.Class<?> clazz,
java.lang.ClassLoader classLoader) |
@Nonnull
public static java.util.Set<java.lang.String> getServiceNames(java.lang.Class<?> clazz,
java.lang.ClassLoader classLoader)
throws java.io.IOException
java.io.IOException@Nonnull
private static java.util.Set<java.lang.String> getNames(java.util.Enumeration<java.net.URL> urlEnumeration)
throws java.io.IOException
urlEnumeration - The urls from the resourcejava.io.IOException - When reading the streams fails@Nonnull
private static java.io.BufferedReader getReader(@Nonnull
java.net.URL url)
throws java.io.IOException
java.io.IOException