Package org.apache.openjpa.util.asm
Class EnhancementClassLoader
- java.lang.Object
-
- java.lang.ClassLoader
-
- org.apache.openjpa.util.asm.EnhancementClassLoader
-
public class EnhancementClassLoader extends java.lang.ClassLoader
A special ClassLoader to handle classes currently under bytecode enhancement. Inspired by the Serp BCClassLoader, but for ASM based enhancement.- Author:
- Mark Struberg
-
-
Constructor Summary
Constructors Constructor Description EnhancementClassLoader(EnhancementProject project)
EnhancementClassLoader(EnhancementProject project, java.lang.ClassLoader parent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ClassNodeTracker
createClass(java.lang.String name)
Override this method if unfound classes should be created on-the-fly.protected java.lang.Class
findClass(java.lang.String name)
EnhancementProject
getProject()
-
Methods inherited from class java.lang.ClassLoader
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findClass, findLibrary, findLoadedClass, findResource, findResource, findResources, findSystemClass, getClassLoadingLock, getDefinedPackage, getDefinedPackages, getName, getPackage, getPackages, getParent, getPlatformClassLoader, getResource, getResourceAsStream, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, getUnnamedModule, isRegisteredAsParallelCapable, loadClass, loadClass, registerAsParallelCapable, resolveClass, resources, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
-
-
-
-
Constructor Detail
-
EnhancementClassLoader
public EnhancementClassLoader(EnhancementProject project)
-
EnhancementClassLoader
public EnhancementClassLoader(EnhancementProject project, java.lang.ClassLoader parent)
-
-
Method Detail
-
getProject
public EnhancementProject getProject()
-
findClass
protected java.lang.Class findClass(java.lang.String name) throws java.lang.ClassNotFoundException
- Overrides:
findClass
in classjava.lang.ClassLoader
- Throws:
java.lang.ClassNotFoundException
-
createClass
protected ClassNodeTracker createClass(java.lang.String name)
Override this method if unfound classes should be created on-the-fly. Returns null by default.
-
-