public final class LazyClassLoader extends URLClassLoader
T-Plan Robot Enterprise, (C) 2009-2022 T-Plan Limited. All rights reserved.
Modifier and Type | Method and Description |
---|---|
static void |
addResource(File f)
Add a file to the class path.
|
static void |
addResource(URL u)
Add a resource URL to the class path.
|
static Class |
forName(String clazz)
Load a class by name.
|
static ClassLoader |
getInstance()
Get shared loader instance.
|
static boolean |
isJava9()
Indicate whether Java is version 9 or higher.
|
static boolean |
isJGraphXMissing()
Indicate if the JGraphX library is loaded or missing.
|
static boolean |
testLibs(StringBuilder b,
boolean html) |
String |
toString() |
close, findResource, findResources, getResourceAsStream, getURLs, newInstance, newInstance
clearAssertionStatus, getParent, getResource, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus
public static boolean isJava9()
public static boolean isJGraphXMissing()
public static ClassLoader getInstance()
public static Class forName(String clazz) throws ClassNotFoundException
clazz
- the class name.ClassNotFoundException
- when the class can not be loaded.public static void addResource(URL u)
u
- a resource.public static void addResource(File f) throws MalformedURLException
f
- a file.MalformedURLException
- if an error is thrown during conversion of
the argument file to a URL.public static boolean testLibs(StringBuilder b, boolean html)