org.sonar.api.batch
Class AbstractCoverageExtension

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

public abstract class AbstractCoverageExtension
extends java.lang.Object
implements BatchExtension

This class implements the management of the code coverage engine if there are several. It is a pre-implementation for Sensors and Decorators

Since:
1.10

Field Summary
static java.lang.String DEFAULT_PLUGIN
          The default value for the code coverage plugin
static java.lang.String PARAM_PLUGIN
          The plugin key to retrieve the coverage engine to be used
 
Constructor Summary
AbstractCoverageExtension(Plugins plugins)
          Default constructor
 
Method Summary
protected  boolean isSelectedPlugin(Project project)
           
 boolean shouldExecuteOnProject(Project project)
          Whether to implement the extension on the project
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PARAM_PLUGIN

public static final java.lang.String PARAM_PLUGIN
The plugin key to retrieve the coverage engine to be used

See Also:
Constant Field Values

DEFAULT_PLUGIN

public static final java.lang.String DEFAULT_PLUGIN
The default value for the code coverage plugin

See Also:
Constant Field Values
Constructor Detail

AbstractCoverageExtension

public AbstractCoverageExtension(Plugins plugins)
Default constructor

Parameters:
plugins - the list of plugins available
Method Detail

shouldExecuteOnProject

public boolean shouldExecuteOnProject(Project project)
Whether to implement the extension on the project


isSelectedPlugin

protected boolean isSelectedPlugin(Project project)


Copyright © 2009-2010 SonarSource. All Rights Reserved.