net.sourceforge.cobertura.coverage
Class CoverageDataFactory

java.lang.Object
  extended bynet.sourceforge.cobertura.coverage.InstrumentationPersistence
      extended bynet.sourceforge.cobertura.coverage.CoverageDataFactory
All Implemented Interfaces:
HasBeenInstrumented, java.lang.Runnable

public class CoverageDataFactory
extends InstrumentationPersistence
implements java.lang.Runnable, HasBeenInstrumented

This class implements HasBeenInstrumented so that when cobertura instruments itself, it will omit this class. It does this to avoid an infinite recursion problem because instrumented classes make use of this class.


Field Summary
(package private) static CoverageDataFactory instrumentationFactory
           
private static org.apache.log4j.Logger logger
           
(package private)  java.util.Timer timer
           
 
Fields inherited from class net.sourceforge.cobertura.coverage.InstrumentationPersistence
FILE_NAME, instrumentation
 
Constructor Summary
private CoverageDataFactory()
           
 
Method Summary
static CoverageDataFactory getInstance()
           
(package private)  int getInstrumentationInterval()
           
 CoverageData newInstrumentation(java.lang.String className)
           
 void run()
           
 
Methods inherited from class net.sourceforge.cobertura.coverage.InstrumentationPersistence
getInstrumentation, keySet, loadInstrumentation, loadInstrumentation, merge, saveInstrumentation, saveInstrumentation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

private static final org.apache.log4j.Logger logger

instrumentationFactory

static final CoverageDataFactory instrumentationFactory

timer

java.util.Timer timer
Constructor Detail

CoverageDataFactory

private CoverageDataFactory()
Method Detail

getInstrumentationInterval

int getInstrumentationInterval()

run

public void run()
Specified by:
run in interface java.lang.Runnable

getInstance

public static CoverageDataFactory getInstance()

newInstrumentation

public CoverageData newInstrumentation(java.lang.String className)