public static class JavaPlatform.MyClassLoader extends java.lang.ClassLoader implements GeneratedClassLoader
Constructor and Description |
---|
MyClassLoader(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)
Createsa 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 void registerClass(java.lang.String name, byte[] classFile)
GeneratedClassLoader
registerClass
in interface GeneratedClassLoader
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-2018 Saxonica Limited. All rights reserved.