public final class ServiceLoaderHelper
extends java.lang.Object
Modifier | Constructor and Description |
---|---|
private |
ServiceLoaderHelper() |
Modifier and Type | Method and Description |
---|---|
private static void |
fail(java.lang.Class<?> service,
java.lang.String msg) |
private static void |
fail(java.lang.Class<?> service,
java.net.URL u,
int line,
java.lang.String msg) |
static RemoteTestNGFactory |
getFirst(Version version) |
static RemoteTestNGFactory |
getFirstQuietly(java.lang.String version) |
static RemoteTestNGFactory |
getFirstQuietly(Version version)
Get the first RemoteTestNGFactory on classpath.
|
private static int |
parseLine(java.lang.Class<?> service,
java.net.URL u,
java.io.BufferedReader r,
int lc,
java.util.List<java.lang.String> names) |
public static RemoteTestNGFactory getFirst(Version version)
public static RemoteTestNGFactory getFirstQuietly(java.lang.String version)
public static RemoteTestNGFactory getFirstQuietly(Version version)
this implementation is diff with getFirst(Version)
that
it scans the JARs on the classpath, and parse the services file manually.
version
- org.testng.TestNGException
- if not foundprivate static int parseLine(java.lang.Class<?> service, java.net.URL u, java.io.BufferedReader r, int lc, java.util.List<java.lang.String> names) throws java.io.IOException, java.util.ServiceConfigurationError
java.io.IOException
java.util.ServiceConfigurationError
private static void fail(java.lang.Class<?> service, java.lang.String msg) throws java.util.ServiceConfigurationError
java.util.ServiceConfigurationError
private static void fail(java.lang.Class<?> service, java.net.URL u, int line, java.lang.String msg) throws java.util.ServiceConfigurationError
java.util.ServiceConfigurationError