Package org.glassfish.pfl.tf.timer.spi
Class TimerPointSourceGenerator
java.lang.Object
org.glassfish.pfl.tf.timer.spi.TimerPointSourceGenerator
Used to generate a class that represents all Timers found in
a TF source file.
Uses the codegen library to generate the source file.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidgenerateFile(String dirName, Pair<String, TimerFactory> description) Generate a single class which contains: private fields for Timers and TimerGroups public accessor methods for Timers and TimerGroups A public constructor<init>(TimerFactory)that initializes the Timer and TimerGroup fields, and the TimerGroup containment.
-
Constructor Details
-
TimerPointSourceGenerator
public TimerPointSourceGenerator()
-
-
Method Details
-
generateFile
public static void generateFile(String dirName, Pair<String, TimerFactory> description) throws IOExceptionGenerate a single class which contains:- private fields for Timers and TimerGroups
- public accessor methods for Timers and TimerGroups
- A public constructor
<init>(TimerFactory)that initializes the Timer and TimerGroup fields, and the TimerGroup containment.
- Parameters:
dirName-description-- Throws:
IOException
-