org.sonar.api.batch
Class AbstractCoverageSensor

java.lang.Object
  extended by org.sonar.api.batch.AbstractCoverageExtension
      extended by org.sonar.api.batch.AbstractCoverageSensor
All Implemented Interfaces:
CheckProject, Sensor, BatchExtension, Extension

public abstract class AbstractCoverageSensor
extends AbstractCoverageExtension
implements Sensor


Field Summary
 
Fields inherited from class org.sonar.api.batch.AbstractCoverageExtension
DEFAULT_PLUGIN, PARAM_PLUGIN
 
Constructor Summary
AbstractCoverageSensor(Plugins plugins, MavenPluginExecutor executor)
           
 
Method Summary
 void analyse(Project project, SensorContext context)
           
protected abstract  void analyseReport(Project project, SensorContext context)
           
protected abstract  MavenPluginHandler getMavenPluginHandler()
           
 boolean shouldExecuteOnProject(Project project)
           
 
Methods inherited from class org.sonar.api.batch.AbstractCoverageExtension
isSelectedPlugin, shouldExecuteCoveragePluginOnProject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractCoverageSensor

public AbstractCoverageSensor(Plugins plugins,
                              MavenPluginExecutor executor)
Method Detail

shouldExecuteOnProject

public boolean shouldExecuteOnProject(Project project)
Specified by:
shouldExecuteOnProject in interface CheckProject

analyse

public final void analyse(Project project,
                          SensorContext context)
Specified by:
analyse in interface Sensor

analyseReport

protected abstract void analyseReport(Project project,
                                      SensorContext context)

getMavenPluginHandler

protected abstract MavenPluginHandler getMavenPluginHandler()


Copyright © 2009 SonarSource SA. All Rights Reserved.