org.sonar.plugins.clover
Class AbstractCloverMavenCollector

java.lang.Object
  extended by org.sonar.plugins.api.maven.AbstractMavenCollector
      extended by org.sonar.plugins.api.maven.AbstractJavaMavenCollector
          extended by org.sonar.plugins.clover.AbstractCloverMavenCollector
All Implemented Interfaces:
Extension, CollectsCodeCoverage, MavenCollector, MavenExtension
Direct Known Subclasses:
Clover1MavenCollector, Clover2MavenCollector

public abstract class AbstractCloverMavenCollector
extends AbstractJavaMavenCollector
implements CollectsCodeCoverage


Field Summary
protected  CloverMavenPlugin cloverMavenPlugin
           
protected  java.lang.Class<? extends MavenPluginHandler> mavenPluginHandlerClass
           
 
Constructor Summary
protected AbstractCloverMavenCollector(JavaMeasuresRecorder measuresRecorder, org.apache.maven.plugin.logging.Log log, org.apache.commons.configuration.Configuration configuration)
           
 
Method Summary
 void collect(MavenPom pom)
           
 void configure(CollectsUnitTests unitTestsCollector)
           
 java.lang.Class<? extends MavenPluginHandler> dependsOnMavenPlugin(MavenPom pom)
          the collector should depend on the execution of a Maven plugin.
protected abstract  java.lang.String getArtifactId()
           
protected abstract  java.lang.String getGroupId()
           
protected abstract  java.lang.Class<? extends MavenPluginHandler> getMavenPluginHandlerClass()
           
protected abstract  int getPluginVersion()
           
protected abstract  java.lang.String getPropKeyLicense()
           
protected  boolean shouldCollectIfLightMode()
           
protected  boolean shouldCollectIfNoSources()
           
 boolean shouldCollectOn(MavenPom pom)
           
 boolean shouldExecutePlugin(MavenPlugin plugin)
           
 boolean shouldStopOnFailure()
          should sonar fails if this collector fails ?
 
Methods inherited from class org.sonar.plugins.api.maven.AbstractJavaMavenCollector
getLog, getMeasuresRecorder
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mavenPluginHandlerClass

protected java.lang.Class<? extends MavenPluginHandler> mavenPluginHandlerClass

cloverMavenPlugin

protected CloverMavenPlugin cloverMavenPlugin
Constructor Detail

AbstractCloverMavenCollector

protected AbstractCloverMavenCollector(JavaMeasuresRecorder measuresRecorder,
                                       org.apache.maven.plugin.logging.Log log,
                                       org.apache.commons.configuration.Configuration configuration)
Method Detail

shouldStopOnFailure

public boolean shouldStopOnFailure()
Description copied from interface: MavenCollector
should sonar fails if this collector fails ?

Specified by:
shouldStopOnFailure in interface MavenCollector

shouldCollectIfNoSources

protected boolean shouldCollectIfNoSources()
Specified by:
shouldCollectIfNoSources in class AbstractJavaMavenCollector

shouldCollectOn

public boolean shouldCollectOn(MavenPom pom)
Specified by:
shouldCollectOn in interface MavenCollector
Overrides:
shouldCollectOn in class AbstractJavaMavenCollector

shouldCollectIfLightMode

protected boolean shouldCollectIfLightMode()
Overrides:
shouldCollectIfLightMode in class AbstractJavaMavenCollector

dependsOnMavenPlugin

public java.lang.Class<? extends MavenPluginHandler> dependsOnMavenPlugin(MavenPom pom)
Description copied from interface: MavenCollector
the collector should depend on the execution of a Maven plugin. In such a case this method returns an handler that defines the Maven plugin. Return null if no maven plugin to execute.

Specified by:
dependsOnMavenPlugin in interface MavenCollector

getMavenPluginHandlerClass

protected abstract java.lang.Class<? extends MavenPluginHandler> getMavenPluginHandlerClass()

shouldExecutePlugin

public boolean shouldExecutePlugin(MavenPlugin plugin)

collect

public void collect(MavenPom pom)
Specified by:
collect in interface MavenCollector

configure

public void configure(CollectsUnitTests unitTestsCollector)
Specified by:
configure in interface CollectsCodeCoverage

getGroupId

protected abstract java.lang.String getGroupId()

getArtifactId

protected abstract java.lang.String getArtifactId()

getPluginVersion

protected abstract int getPluginVersion()

getPropKeyLicense

protected abstract java.lang.String getPropKeyLicense()


Copyright © 2008 SonarSource SA. All Rights Reserved.