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.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface
private class
static enum
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate EnhanceTool.Arguments
private static int
private TimingInfoProcessor
private Util
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate void
doScan
(EnhanceTool.Arguments args, ActionFactory af, Scanner scanner, Scanner.Action classAct) private void
generatePropertiesFile
(EnhanceTool.Arguments args, Set<String> anames) static void
private Scanner.Action
makeIgnoreAction
(boolean trace) void
-
Field Details
-
errorCount
private static int errorCount -
util
-
args
-
tip
-
-
Constructor Details
-
EnhanceTool
public EnhanceTool()
-
-
Method Details
-
generatePropertiesFile
private void generatePropertiesFile(EnhanceTool.Arguments args, Set<String> anames) throws IOException - Throws:
IOException
-
makeIgnoreAction
-
doScan
private void doScan(EnhanceTool.Arguments args, ActionFactory af, Scanner scanner, Scanner.Action classAct) throws IOException - Throws:
IOException
-
run
-
main
-