public class MWResourceClassLoader extends ClassLoader
| Constructor and Description |
|---|
MWResourceClassLoader(List<String> repo,
ClassLoader parent) |
| Modifier and Type | Method and Description |
|---|---|
Class |
findClass(String name) |
Class |
loadClass(String name,
boolean resolve) |
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findLibrary, findLoadedClass, findResource, findResources, findSystemClass, getClassLoadingLock, getPackage, getPackages, getParent, getResource, getResourceAsStream, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, registerAsParallelCapable, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSignerspublic MWResourceClassLoader(List<String> repo, ClassLoader parent) throws IOException
repo - : list of elements, which can be one of three types:
1. resource jar files to load classes from, e.g., "/resources/log4j.jar"
2. specific class names to load custom classloader first, e.g., "com.mathworks.mps.client.internal.MWLoggerFactory"
3. specific class names to load parent classloader first, e.g., "-org.slf4j.Logger"parent - : parent ClassLoaderIOExceptionpublic Class loadClass(String name, boolean resolve) throws ClassNotFoundException
loadClass in class ClassLoaderClassNotFoundExceptionpublic Class findClass(String name) throws ClassNotFoundException
findClass in class ClassLoaderClassNotFoundExceptionCopyright © 2015–2024. All rights reserved.