public class DirectClassLoader extends ClassLoader
| Constructor and Description |
|---|
DirectClassLoader(ClassLoader parent)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(String name,
byte[] content)
Adds a class file for this class loader.
|
protected Class<?> |
findClass(String name) |
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findLibrary, findLoadedClass, findResource, findResources, findSystemClass, getClassLoadingLock, getPackage, getPackages, getParent, getResource, getResourceAsStream, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, loadClass, registerAsParallelCapable, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSignerspublic DirectClassLoader(ClassLoader parent)
parent - the parent class loaderpublic void add(String name, byte[] content)
name - the binary name of the target classcontent - the class file contentsIllegalArgumentException - if the parameters are nullprotected Class<?> findClass(String name) throws ClassNotFoundException
findClass in class ClassLoaderClassNotFoundExceptionCopyright © 2011–2019 Asakusa Framework Team. All rights reserved.