|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectch.elca.el4j.coberturaruntime.CoberturaRuntimeControllerImpl
public class CoberturaRuntimeControllerImpl
Bean to control the cobertura runtime behavior.
Field Summary | |
---|---|
static String |
COBERTURA_RUNTIME_DATA_DIRECTORY
Property key for the cobertura data directory. |
static String |
COBERTURA_RUNTIME_DATA_FILENAME
Property key for the cobertura data filename. |
static String |
COBERTURA_RUNTIME_KEEP_REPORTS
Property key for the cobertura keep reports flag. |
static String |
COBERTURA_RUNTIME_SRC_COL_DIR_NAME
Property key for the cobertura data directory. |
protected File |
m_coberturaCollectedSourcesDirectory
Is the directory where the collected sources are. |
protected File |
m_coberturaDataDirectory
Is the cobertura data directory where all info will be saved. |
protected String |
m_coberturaDataFilename
Is the cobertura data filename. |
protected boolean |
m_isOfflineMode
If false the controller is running in online mode. |
protected boolean |
m_keepReports
If true every report will have its own directory. |
Constructor Summary | |
---|---|
CoberturaRuntimeControllerImpl()
Constructor to init the cobertura data directory in online mode. |
|
CoberturaRuntimeControllerImpl(boolean offlineMode)
Constructor to init the cobertura data directory. |
Method Summary | |
---|---|
void |
flushRecords()
Flushes the made records to the given data file. |
String |
generateReport()
Generates the cobertura report of the current state. |
String |
getDataFilePath()
|
boolean |
isRecording()
|
protected void |
setGlobalCoverageDataAndDataFile(net.sourceforge.cobertura.coveragedata.ProjectData coverageData,
File coberturaDataFile)
Sets the global coverage data and the data file via reflection, due this point is really poorly made in cobertura. |
boolean |
startRecording()
Starts recording of cobertura. |
boolean |
stopRecording()
Stops recording of cobertura. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String COBERTURA_RUNTIME_DATA_DIRECTORY
public static final String COBERTURA_RUNTIME_DATA_FILENAME
public static final String COBERTURA_RUNTIME_SRC_COL_DIR_NAME
public static final String COBERTURA_RUNTIME_KEEP_REPORTS
protected final File m_coberturaDataDirectory
protected final String m_coberturaDataFilename
protected final File m_coberturaCollectedSourcesDirectory
protected final boolean m_keepReports
true
every report will have its own directory.
protected final boolean m_isOfflineMode
false
the controller is running in online mode.
Constructor Detail |
---|
public CoberturaRuntimeControllerImpl()
public CoberturaRuntimeControllerImpl(boolean offlineMode)
offlineMode
- true
if no app is running.Method Detail |
---|
public boolean startRecording()
startRecording
in interface CoberturaRuntimeController
true
if the recording could be started and cobertura was not already running.public boolean stopRecording()
stopRecording
in interface CoberturaRuntimeController
true
if the recording could be stopped and cobertura was not already stopped.protected void setGlobalCoverageDataAndDataFile(net.sourceforge.cobertura.coveragedata.ProjectData coverageData, File coberturaDataFile)
coverageData
- Is the loaded cobertura data.coberturaDataFile
- Is the file reference of the cobertura data.public boolean isRecording()
isRecording
in interface CoberturaRuntimeController
true
if cobertura is currently recording.public void flushRecords()
flushRecords
in interface CoberturaRuntimeController
public String getDataFilePath()
getDataFilePath
in interface CoberturaRuntimeController
public String generateReport()
generateReport
in interface CoberturaRuntimeController
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |