net.sourceforge.cobertura.coverage
Class InstrumentationPersistence
java.lang.Object
net.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
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
InstrumentationPersistence
public InstrumentationPersistence()
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()