public static class JavaPlatform.MyClassLoader extends ClassLoader implements GeneratedClassLoader
Constructor and Description |
---|
JavaPlatform.MyClassLoader(ClassLoader parentClassLoader) |
Modifier and Type | Method and Description |
---|---|
protected Class<?> |
findClass(String name) |
void |
registerClass(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 JavaPlatform.MyClassLoader(ClassLoader parentClassLoader)
public void registerClass(String name, byte[] classFile)
GeneratedClassLoader
registerClass
in interface GeneratedClassLoader
name
- The name of the class to registerclassFile
- The class file as a byte arrayprotected Class<?> findClass(String name) throws ClassNotFoundException
findClass
in class ClassLoader
ClassNotFoundException
Copyright (c) 2004-2014 Saxonica Limited. All rights reserved.