public class AccessClassLoader extends ClassLoader
Modifier and Type | Method and Description |
---|---|
Class<?> |
findClass(String name) |
static AccessClassLoader |
get(Class<?> typeToBeExtended)
Creates a new instance using a suitable ClassLoader for the specified class
|
static AccessClassLoader |
get(ClassLoader parent)
Creates an AccessClassLoader for the given parent
|
Class<?> |
loadClass(String name) |
void |
registerClass(String name,
byte[] bytes)
Registers a class by its name
|
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findLibrary, findLoadedClass, findResource, findResources, findSystemClass, getClassLoadingLock, getPackage, getPackages, getParent, getResource, getResourceAsStream, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, registerAsParallelCapable, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
public static final AccessClassLoader get(Class<?> typeToBeExtended)
typeToBeExtended
- The class to use to obtain a ClassLoaderpublic static final AccessClassLoader get(ClassLoader parent)
parent
- The parent ClassLoader for this instancepublic Class<?> loadClass(String name) throws ClassNotFoundException
loadClass
in class ClassLoader
ClassNotFoundException
public void registerClass(String name, byte[] bytes)
name
- The name of the class to be registeredbytes
- An array of bytes containing the classpublic Class<?> findClass(String name) throws ClassNotFoundException
findClass
in class ClassLoader
ClassNotFoundException
Copyright © 2010–2018 Jadira Systems. All rights reserved.