Package org.codehaus.aspectwerkz.hook

Interface Summary
ClassLoaderPreProcessor Implement to be the java.lang.ClassLoader pre processor.
ClassPreProcessor Implement to be a class PreProcessor in the AspectWerkz univeral loading architecture.
RuntimeClassProcessor Component able to transform a class at runtime
 

Class Summary
BootClasspathStarter Starts a target process adding a dir in -Xbootclasspath/p: option

Target process is launched using $JAVA_HOME/bin/java [opt] [main]
and [opt] is patched to use [bootDir] in -Xbootclasspath/p: option.

ClassLoaderPatcher Utility methods to manipulate class redefinition of java.lang.ClassLoader in xxxStarter
JDWPStarter Starts a target process adding JDWP option to have a listening connector and be in suspend mode

Target process is launched using $JAVA_HOME/bin/java [opt] [main]
and [opt] is patched to use -Xdebug -Xrunjdwp:transport=..

Plug Main application that allow two steps preparation of the hook

This can be used instead of ProcessStarter to dual JVM and stream piping

Usage java [options..] org.codehaus.aspectwerkz.hook.Plug -target <targetJar.jar> java [options..] org.codehaus.aspectwerkz.hook.Plug -hotswap <jdwp options> java [options..] org.codehaus.aspectwerkz.hook.Plug -resume <jdwp options> java [options..] org.codehaus.aspectwerkz.hook.Plug -info <jdwp options> -target targetJar.jar to generate a targetJar.jar containing the patched java.lang.ClassLoader suitable for your current java installation.

ProcessStarter ProcessStarter uses JPDA JDI api to start a VM with a runtime modified java.lang.ClassLoader, or transparently use a Xbootclasspath style (java 1.3 detected or forced)

Important note Due to a JPDA issue in LauchingConnector, this implementation is based on Process forking.

 



Copyright © 2002-2004 Jonas Bonér, Alexandre Vasseur. All Rights Reserved.