org.sonar.plugins.cpd
Class CpdMavenCollector

java.lang.Object
  extended by org.sonar.plugins.cpd.CpdMavenCollector
All Implemented Interfaces:
Extension, MavenCollector, MavenExtension

public class CpdMavenCollector
extends java.lang.Object
implements MavenCollector


Constructor Summary
CpdMavenCollector(CpdMapping[] cpdMappingList, org.apache.commons.configuration.Configuration configuration, Exclusions exclusions)
           
 
Method Summary
 void collect(MavenPom pom, ProjectContext context)
          Collects data after the MavenPluginHandler execution
 java.lang.Class<? extends MavenPluginHandler> dependsOnMavenPlugin(MavenPom pom)
          the collector should depend on the execution of a Maven plugin.
 boolean shouldCollectOn(MavenPom pom)
          Defines if the mavne collector should be launched on the given pom
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CpdMavenCollector

public CpdMavenCollector(CpdMapping[] cpdMappingList,
                         org.apache.commons.configuration.Configuration configuration,
                         Exclusions exclusions)
Method Detail

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

shouldCollectOn

public boolean shouldCollectOn(MavenPom pom)
Description copied from interface: MavenCollector
Defines if the mavne collector should be launched on the given pom

Specified by:
shouldCollectOn in interface MavenCollector
Parameters:
pom - the pom to test
Returns:
true if the collector should be executed

collect

public void collect(MavenPom pom,
                    ProjectContext context)
Description copied from interface: MavenCollector
Collects data after the MavenPluginHandler execution

Specified by:
collect in interface MavenCollector
Parameters:
pom - the pom being collected
context - the context to collect data


Copyright © 2009 SonarSource SA. All Rights Reserved.