Top Fields Constructors Methods
org.hibernate.bytecode.javassist

public Class TransformingClassLoader

extends ClassLoader
Class Inheritance
Imports
javassist.ClassPool, .NotFoundException, .CtClass, .CannotCompileException, org.hibernate.HibernateException, java.io.IOException

Author
Steve Ebersole

Field Summary

Modifier and TypeField and Description
private ClassPool
private ClassLoader

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
protected Class<T>
findClass(String
The binary name of the class
name
)

Overrides java.lang.ClassLoader.findClass.

Finds the class with the specified binary name.
public void
Inherited from java.lang.ClassLoader:
clearAssertionStatusdefineClassdefineClassdefineClassdefineClassdefinePackagefindClassfindLibraryfindLoadedClassfindResourcefindResourcefindResourcesfindSystemClassgetClassLoadingLockgetDefinedPackagegetDefinedPackagesgetNamegetPackagegetPackagesgetParentgetPlatformClassLoadergetResourcegetResourceAsStreamgetResourcesgetSystemClassLoadergetSystemResourcegetSystemResourceAsStreamgetSystemResourcesgetUnnamedModuleisRegisteredAsParallelCapableloadClassloadClassregisterAsParallelCapableresolveClassresourcessetClassAssertionStatussetDefaultAssertionStatussetPackageAssertionStatussetSigners

Field Detail

classPoolback to summary
private ClassPool classPool
parentback to summary
private ClassLoader parent

Hides java.lang.ClassLoader.parent.

Constructor Detail

TransformingClassLoaderback to summary
pack-priv TransformingClassLoader(ClassLoader parent, String[] classpath)

Method Detail

findClassback to summary
protected Class<T> findClass(String name) throws ClassNotFoundException

Overrides java.lang.ClassLoader.findClass.

Doc from java.lang.ClassLoader.findClass.

Finds the class with the specified binary name. This method should be overridden by class loader implementations that follow the delegation model for loading classes, and will be invoked by the loadClass method after checking the parent class loader for the requested class.

Parameters
name:String

The binary name of the class

Returns:Class<T>

The resulting Class object

Exceptions
ClassNotFoundException:
If the class could not be found
releaseback to summary
public void release()