public class ByteCodeClassLoader extends ClassLoader
ClassLoader for loading known bytecode.| Modifier and Type | Field and Description |
|---|---|
protected Map<String,byte[]> |
bytecodes
Map from class name to bytecode.
|
protected Map<String,Class<?>> |
typeClasses |
| Constructor and Description |
|---|
ByteCodeClassLoader(ClassLoader parent) |
| Modifier and Type | Method and Description |
|---|---|
ByteCodeClassLoader |
addClass(ClassDefinition classDef)
Adds a class definition for this ClassLoader.
|
Class<?> |
loadClass(String className) |
Class<?> |
loadClass(String className,
boolean resolveIt) |
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findClass, findLibrary, findLoadedClass, findResource, findResources, findSystemClass, getClassLoadingLock, getPackage, getPackages, getParent, getResource, getResourceAsStream, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, registerAsParallelCapable, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSignerspublic ByteCodeClassLoader(ClassLoader parent)
public final ByteCodeClassLoader addClass(ClassDefinition classDef)
classDef - The class definitionpublic Class<?> loadClass(String className) throws ClassNotFoundException
loadClass in class ClassLoaderClassNotFoundExceptionpublic Class<?> loadClass(String className, boolean resolveIt) throws ClassNotFoundException
loadClass in class ClassLoaderClassNotFoundExceptionCopyright © 2019 CDAP Licensed under the Apache License, Version 2.0.