org.springframework.instrument.classloading
Class SimpleThrowawayClassLoader
java.lang.Object
java.lang.ClassLoader
org.springframework.instrument.classloading.AbstractOverridingClassLoader
org.springframework.instrument.classloading.SimpleThrowawayClassLoader
public class SimpleThrowawayClassLoader
- extends AbstractOverridingClassLoader
ClassLoader that can be used to load classes without bringing them
into the parent loader. Intended to support JPA "temp class loader"
requirement, but not JPA-specific.
- Since:
- 2.0
- Author:
- Rod Johnson
Method Summary |
protected byte[] |
transformIfNecessary(String name,
byte[] bytes)
Transformation hook to be implemented by subclasses. |
Methods inherited from class java.lang.ClassLoader |
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findClass, findLibrary, findLoadedClass, findResource, findResources, findSystemClass, getPackage, getPackages, getParent, getResource, getResourceAsStream, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimpleThrowawayClassLoader
public SimpleThrowawayClassLoader(ClassLoader parent)
transformIfNecessary
protected byte[] transformIfNecessary(String name,
byte[] bytes)
- Description copied from class:
AbstractOverridingClassLoader
- Transformation hook to be implemented by subclasses.
- Specified by:
transformIfNecessary
in class AbstractOverridingClassLoader
- Parameters:
name
- FQN of class being transformedbytes
- class bytes
- Returns:
- transformed bytes. Return same as input bytes if
the transformation produced no changes.
Copyright © 2002-2006 The Spring Framework.