net.sourceforge.cobertura.coverage
Class InstrumentationPersistence

java.lang.Object
  extended bynet.sourceforge.cobertura.coverage.InstrumentationPersistence
All Implemented Interfaces:
HasBeenInstrumented
Direct Known Subclasses:
CoverageDataFactory, Main, Main

public class InstrumentationPersistence
extends java.lang.Object
implements 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
static java.lang.String FILE_NAME
          Default file name used to write instrumentation information.
(package private)  java.util.Map instrumentation
           
private static org.apache.log4j.Logger logger
           
 
Constructor Summary
InstrumentationPersistence()
           
 
Method Summary
private  java.io.File getDirectory()
           
protected  CoverageData getInstrumentation(java.lang.String classname)
           
protected  java.util.Set keySet()
           
protected  java.util.Map loadInstrumentation()
           
protected  java.util.Map loadInstrumentation(java.io.InputStream is)
           
protected  void merge(java.util.Map m)
           
protected  void saveInstrumentation()
           
protected  void saveInstrumentation(java.io.File destDir)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FILE_NAME

public static final java.lang.String FILE_NAME
Default file name used to write instrumentation information.

See Also:
Constant Field Values

logger

private static final org.apache.log4j.Logger logger

instrumentation

final java.util.Map instrumentation
Constructor Detail

InstrumentationPersistence

public InstrumentationPersistence()
Method Detail

loadInstrumentation

protected java.util.Map loadInstrumentation()

loadInstrumentation

protected java.util.Map loadInstrumentation(java.io.InputStream is)

merge

protected void merge(java.util.Map m)

getDirectory

private java.io.File getDirectory()

saveInstrumentation

protected void saveInstrumentation()

saveInstrumentation

protected void saveInstrumentation(java.io.File destDir)

getInstrumentation

protected CoverageData getInstrumentation(java.lang.String classname)

keySet

protected java.util.Set keySet()