Top Description Fields Constructors Methods
org.hibernate.bytecode

public Class InstrumentedClassLoader

extends ClassLoader
Class Inheritance
Imports
org.hibernate.bytecode.util.ByteCodeHelper, java.io.InputStream

A specialized classloader which performs bytecode enhancement on class definitions as they are loaded into the classloader scope.
Authors
Emmanuel Bernard, Steve Ebersole

Field Summary

Modifier and TypeField and Description
private ClassTransformer

Constructor Summary

AccessConstructor and Description
public

Method Summary

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

Overrides java.lang.ClassLoader.loadClass.

Loads the class with the specified binary name.
Inherited from java.lang.ClassLoader:
clearAssertionStatusdefineClassdefineClassdefineClassdefineClassdefinePackagefindClassfindClassfindLibraryfindLoadedClassfindResourcefindResourcefindResourcesfindSystemClassgetClassLoadingLockgetDefinedPackagegetDefinedPackagesgetNamegetPackagegetPackagesgetParentgetPlatformClassLoadergetResourcegetResourceAsStreamgetResourcesgetSystemClassLoadergetSystemResourcegetSystemResourceAsStreamgetSystemResourcesgetUnnamedModuleisRegisteredAsParallelCapableloadClassregisterAsParallelCapableresolveClassresourcessetClassAssertionStatussetDefaultAssertionStatussetPackageAssertionStatussetSigners

Field Detail

classTransformerback to summary
private ClassTransformer classTransformer

Constructor Detail

InstrumentedClassLoaderback to summary
public InstrumentedClassLoader(ClassLoader parent, ClassTransformer classTransformer)

Method Detail

loadClassback to summary
public Class<T> loadClass(String name) throws ClassNotFoundException

Overrides java.lang.ClassLoader.loadClass.

Doc from java.lang.ClassLoader.loadClass.

Loads the class with the specified binary name. This method searches for classes in the same manner as the loadClass(String, boolean) method. It is invoked by the Java virtual machine to resolve class references. Invoking this method is equivalent to invoking loadClass(name, false).

Parameters
name:String

The binary name of the class

Returns:Class<T>

The resulting Class object

Exceptions
ClassNotFoundException:
If the class was not found