|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.aspectwerkz.hook.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)
java [target jvm option] [target classpath]
targetMainClass [targetMainClass args]
java [jvm option] [classpath]
org.codehaus.aspectwerkz.hook.ProcessStarter [target jvm option] [target classpath] targetMainClass [targetMainClass
args]
-Daspectwerkz.classloader.clpreprocessor=...
in
[jvm option]. Specify the FQN of your implementation of hook.ClassLoaderPreProcessor. See ClassLoaderPreProcessor
If not given, the default AspectWerkz layer 1 Javassist
implementation hook.impl.* is used, which is equivalent to
-Daspectwerkz.classloader.clpreprocessor=org.codehaus.aspectwerkz.hook.impl.ClassLoaderPreProcessorImpl
-Daspectwerkz.classloader.clbootclasspath=...
. Specify the directory where you want the patched
java.lang.ClassLoader to be stored. Default is "./_boot". The directory is created if needed (with the subdirectories
corresponding to package names).
org.codehaus.aspectwerkz.hook.impl.ClassLoaderPreProcessorImpl
, java.lang.ClassLoader is modified to
call a class preprocessor at each class load (except for class loaded by the bootstrap classloader). -Daspectwerkz.classloader.preprocessor=...
in [target jvm
option]. Specify the FQN of your implementation of org.codehaus.aspectwerkz.hook.ClassPreProcessor interface.
Constructor Summary | |
ProcessStarter()
|
Method Summary | |
static void |
main(String[] args)
|
String[] |
parseJavaCommandLine(String[] args)
Analyse the args[] as a java command line |
static String |
removeEmbracingQuotes(String s)
Remove first and last " or ' if any |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ProcessStarter()
Method Detail |
public static void main(String[] args)
public static String removeEmbracingQuotes(String s)
s
- string to handle
public String[] parseJavaCommandLine(String[] args)
args
-
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |