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 Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    generateFile(String dirName, org.glassfish.pfl.basic.contain.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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • TimerPointSourceGenerator

      public TimerPointSourceGenerator()
  • Method Details

    • generateFile

      public static void generateFile(String dirName, org.glassfish.pfl.basic.contain.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