public class ByteArrayClassLoader extends ClassLoader
ClassLoader that is capable of loading explicitly defined classes. The class loader will free
any binary resources once a class that is defined by its binary data is loaded. This class loader is thread safe since
the class loading mechanics are only called from synchronized context.| Constructor and Description |
|---|
ByteArrayClassLoader(ClassLoader parent,
Map<String,byte[]> typeDefinitions)
Creates a new class loader for a given definition of classes.
|
ByteArrayClassLoader(Map<TypeDescription,byte[]> typeDefinitions,
ClassLoader parent)
Creates a new class loader for a given definition of classes.
|
| Modifier and Type | Method and Description |
|---|---|
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 ByteArrayClassLoader(ClassLoader parent, Map<String,byte[]> typeDefinitions)
parent - The ClassLoader that is the parent of this class loader.typeDefinitions - A map of fully qualified class names pointing to their binary representations.public ByteArrayClassLoader(Map<TypeDescription,byte[]> typeDefinitions, ClassLoader parent)
typeDefinitions - A map of type descriptions pointing to their binary representations.parent - The ClassLoader that is the parent of this class loader.protected Class<?> findClass(String name) throws ClassNotFoundException
findClass in class ClassLoaderClassNotFoundExceptionCopyright © 2014. All rights reserved.