com.uwyn.rife.continuations.basic
Class BasicContinuableClassLoader
java.lang.Object
java.lang.ClassLoader
com.uwyn.rife.continuations.basic.BasicContinuableClassLoader
- All Implemented Interfaces:
- ClassBytesProvider
public class BasicContinuableClassLoader
- extends ClassLoader
- implements ClassBytesProvider
Classloader implementation that will transform bytecode for classes that
should receive the continuations functionalities.
Note that this is a basic classloader implementation. For your own
application you should probably create your own or at least read over
the source code of this one. It's even better to not use a custom
classloader and only rely on the ContinuationsAgent.
- Since:
- 1.6
- Version:
- $Revision: 3862 $
- Author:
- Geert Bevin (gbevin[remove] at uwyn dot com)
| 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 |
BasicContinuableClassLoader
public BasicContinuableClassLoader(ContinuationConfigInstrument config)
- Creates a new classloader instance with the context classloader as
the parent classloader.
- Parameters:
config - the instance of the instrumentation configuration that
will be used for the transformation- Since:
- 1.6
BasicContinuableClassLoader
public BasicContinuableClassLoader(ClassLoader parent,
ContinuationConfigInstrument config)
- Creates a new classloader instance.
- Parameters:
parent - the parent classloaderconfig - the instance of the instrumentation configuration that
will be used for the transformation- Since:
- 1.6
__tc_getClassLoaderName
public String __tc_getClassLoaderName()
getClassBytes
public byte[] getClassBytes(String className,
boolean reloadAutomatically)
throws ClassNotFoundException
- Specified by:
getClassBytes in interface ClassBytesProvider
- Throws:
ClassNotFoundException
loadClass
public Class loadClass(String name)
throws ClassNotFoundException
- Overrides:
loadClass in class ClassLoader
- Throws:
ClassNotFoundException
Copyright © 2001-2007 Uwyn sprl/bvba. All Rights Reserved.