Table of Contents

JAsCo Tools Documentation

GENERAL HINTS

TRANSFORMBEAN

This tool transforms normal java classes in JAsCo enabled java classes. If you want to preprocess the classes to enable JAsCo interaction, then you have to use this tool. Alternative weaving options are HotSwap or the run-time weaver as explained here .

Usage: transformBean aClass “-classpath:classpath” “-outputdir:outputandinputdir”

Alternative Usage: transformBean -l files.lst “-classpath:classpath” “-outputdir:outputandinputdir”

Alternative Usage: transformBean -D inputdir “-classpath:classpath” “-outputdir:outputdir”

Optional flag “-X:listofmethods” : Allows to specify a list of methods that cannot be trapped and as such no aspects can ever be applied on these methods. listofmethods is a list of method names delimited by “;” on windows or “:” on linux. (introduced in version 0.2.14) Note: when multiple methods match a supplied name (e.g. due to method overloading or in different beans with the -l option), they are all excluded.

Optional flag -A : Per default only public methods and events are trapped. When specifying the -A flag, all methods and events are trapped. (introduced in version 0.2.14)

Optional flag “-target:targetjdk” : Allows to specify the target virtual machine (targetjdk) to generate code to. Is equivalent to -target flag of javac. Default is the current VM. Example usage: -target:1.1 (since version 0.3.0)

Optional flag “-noevents” : Per default, fired events (part of the Java beans spec) are trapped by this tool. Specifying the noevents flag disables this. You might want to do this for stability or performance reasons. (since version 0.4.2)

COMPILEASPECT

Usage: compileAspect aFile “-classpath:classpath” “-outputdir:outputdir”

Optional flag -X : Adds traps to the aspect bean and hooks so that they are able to be subject for aspect application. (introduced in version 0.2.14)

Optional flag “-target:targetjdk” : Allows to specify the target virtual machine (targetjdk) to generate code to. Is equivalent to -target flag of javac. Default is the current VM. Example usage: -target:1.1 (since version 0.3.0)

COMPILECONNECTOR

Usage: compileConnector aFile “-classpath:classpath” “-outputdir:outputdir”

Optional flag -X : All java classes affected by the aspect beans instantiated in this connector are transformed using the transformBean tool. The java classes do have to reside in outputdir as with the transformBean tool. Ignores classnames containing wildcards!

Optional flag “-target:targetjdk” : Allows to specify the target virtual machine (targetjdk) to generate code to. Is equivalent to -target flag of javac. Default is the current VM. Example usage: -target:1.1 (since version 0.3.0)

COMPILETRAVERSAL

Usage: compileTraversal aFile “-classpath:classpath” “-outputdir:outputdir”

Optional flag “-target:targetjdk” : Allows to specify the target virtual machine (targetjdk) to generate code to. Is equivalent to -target flag of javac. Default is the current VM. Example usage: -target:1.1 (since version 0.3.0)

COMPILEREFINEMENT

(available since 0.8.5M2)

Usage: compileRefinement aFile “-classpath:classpath” “-outputdir:outputdir”

Optional flag “-target:targetjdk” : Allows to specify the target virtual machine (targetjdk) to generate code to. Is equivalent to -target flag of javac. Default is the current VM. Example usage: -target:1.1

INTROSPECT

Allows introspecting which connectors are loaded for a given classpath + change some properties of the connectors.

Usage: introspect “-classpath:classpath”