Class EnhanceTool
java.lang.Object
org.glassfish.pfl.tf.tools.enhancer.EnhanceTool
Tool for enhancing classes annotated with tracing facility annotations.
The processing is divided into two phases:
- The first phase adds code to the static initialized of the class to register the class with the TF framework. This phase also modifies all calls to @InfoMethod annotated methods to pass extra arguments needed for tracing. Note that this phase must be done at build time, because it modifies the schema of the class.
- The second phase adds the actual trace code to methods annotated with tracing annotations. This does not change the schema, so this phase could be done either at build time, or at runtime. Tracing the code only at runtime may reduce the overhead, since untraced code need not be modified.
- Author:
- ken
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic enum -
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
EnhanceTool
public EnhanceTool()
-
-
Method Details
-
run
-
main
-