public class GeneratedClassLoader
extends java.lang.ClassLoader
Constructor and Description |
---|
GeneratedClassLoader(java.lang.ClassLoader parentClassLoader) |
Modifier and Type | Method and Description |
---|---|
protected java.lang.Class<?> |
findClass(java.lang.String name) |
void |
registerClass(java.lang.String name,
byte[] classFile)
Creates a class from the supplied byte array and registers it for later use.
|
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, setSigners
public GeneratedClassLoader(java.lang.ClassLoader parentClassLoader)
public void registerClass(java.lang.String name, byte[] classFile)
name
- The name of the class to registerclassFile
- The class file as a byte arrayprotected java.lang.Class<?> findClass(java.lang.String name) throws java.lang.ClassNotFoundException
findClass
in class java.lang.ClassLoader
java.lang.ClassNotFoundException
Copyright (c) 2004-2020 Saxonica Limited. All rights reserved.