public final class EnhancerClassLoader extends ClassLoader
Constructor and Description |
---|
EnhancerClassLoader() |
EnhancerClassLoader(ClassLoaderResolver iDelegate) |
Modifier and Type | Method and Description |
---|---|
void |
defineClass(String fullClassName,
byte[] bytes,
ClassLoaderResolver clr)
Define a class in this ClassLoader.
|
protected URL |
findResource(String name)
Overwrite to have an opportunity to find resources from the delegate ClassLoaderResolver
|
Class |
loadClass(String name)
Overwrite to have an opportunity to load classes from the delegate ClassLoaderResolver
|
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findClass, findLibrary, findLoadedClass, findResources, findSystemClass, getClassLoadingLock, getPackage, getPackages, getParent, getResource, getResourceAsStream, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, registerAsParallelCapable, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
public EnhancerClassLoader()
public EnhancerClassLoader(ClassLoaderResolver iDelegate)
public void defineClass(String fullClassName, byte[] bytes, ClassLoaderResolver clr)
fullClassName
- the class namebytes
- the bytes representation of the classclr
- the ClassLoaderResolver to load linked classespublic Class loadClass(String name) throws ClassNotFoundException
loadClass
in class ClassLoader
ClassNotFoundException
protected URL findResource(String name)
findResource
in class ClassLoader
Copyright © 2019. All rights reserved.