org.sonar.plugins.api.maven
Class AbstractMavenCollector<LANG extends Language>

java.lang.Object
  extended by org.sonar.plugins.api.maven.AbstractMavenCollector<LANG>
All Implemented Interfaces:
Extension, MavenCollector, MavenExtension
Direct Known Subclasses:
AbstractJavaMavenCollector, AbstractViolationsCollector

public abstract class AbstractMavenCollector<LANG extends Language>
extends java.lang.Object
implements MavenCollector


Constructor Summary
AbstractMavenCollector(LANG language)
           
 
Method Summary
 LANG getLanguage()
           
protected abstract  boolean shouldCollectIfNoSources()
           
 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
 
Methods inherited from interface org.sonar.plugins.api.maven.MavenCollector
collect, dependsOnMavenPlugin
 

Constructor Detail

AbstractMavenCollector

public AbstractMavenCollector(LANG language)
Method Detail

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

shouldCollectIfNoSources

protected abstract boolean shouldCollectIfNoSources()

getLanguage

public LANG getLanguage()


Copyright © 2009 SonarSource SA. All Rights Reserved.