org.sonar.api
Interface BatchComponent

All Known Subinterfaces:
ActiveRules, BatchExtension, CoverageExtension, CpdMapping, Decorator, DecoratorExecutionHandler, DecoratorsPhaseHandler, DependsUponMavenPlugin, EventHandler, FileLinesContextFactory, FileSystem, FileSystemFilter, I18n, InitializerExecutionHandler, InitializersPhaseHandler, InputFileFilter, IssueFilter, IssueFilter, IssueHandler, Language, MavenPhaseHandler, MavenPluginHandler, MetricFinder, Metrics, ModuleFileSystem, ModuleScanPhaseHandler, NotificationManager, Perspectives, PluginRepository, PostJob, PostJobExecutionHandler, PostJobsPhaseHandler, ProjectAnalysisHandler, ProjectFileSystem, ProjectIssues, ProjectScanHandler, ResourcePerspectives, RuleI18n, Rules, Sensor, Sensor, SensorExecutionHandler, SensorsPhaseHandler, TechnicalDebtModel, TimeMachine, UserFinder, UserFinder, ViolationFilter
All Known Implementing Classes:
AbstractCpdMapping, AbstractDivisionDecorator, AbstractLanguage, AbstractSumChildrenDecorator, BlameCommand, BuildBreaker, CheckFactory, ComponentContainer, DatabaseSession, DefaultActiveRules, DefaultFileSystem, Durations, EmailSettings, FileExclusions, HttpDownloader, Initializer, Languages, Metric, NoSonarFilter, PathResolver, ProfileExporter, ProjectBuilder, ProjectClasspath, ProjectReactor, PropertyDefinition, PropertyDefinitions, ScmProvider, Server, Settings, System2, UriReader

public interface BatchComponent

Marker interface for all the components available in container of batch (code analyzer). Note that injection of dependencies by constructor is used :

   public class Foo implements BatchComponent {

   }
   public class Bar implements BatchComponent {
     private final Foo foo;
     public Bar(Foo f) {
       this.foo = f;
     }
   }

 

Since:
2.2



Copyright © 2009–2015 SonarSource. All rights reserved.