Class TimerPointSourceGenerator

java.lang.Object
org.glassfish.pfl.tf.timer.spi.TimerPointSourceGenerator

public class TimerPointSourceGenerator extends Object
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 Details

    • TimerPointSourceGenerator

      public TimerPointSourceGenerator()
  • Method Details

    • generateFile

      public static void generateFile(String dirName, Pair<String,TimerFactory> description) throws IOException
      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.
      Parameters:
      dirName -
      description -
      Throws:
      IOException