org.glassfish.pfl.tf.timer.spi
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.
|
Method Summary |
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 (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 |
TimerPointSourceGenerator
public TimerPointSourceGenerator()
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 (TimerFactory) that initializes the
Timer and TimerGroup fields, and the TimerGroup containment.
- Parameters:
dirName - description -
- Throws:
IOException
Copyright © 2013 Oracle. All Rights Reserved.