Class StartableExtension

java.lang.Object
org.sonar.samples.java.StartableExtension

@ScannerSide public class StartableExtension extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
    StartableExtension(org.sonar.api.batch.fs.FileSystem fileSystem, org.sonar.plugins.java.api.JavaResourceLocator javaResourceLocator)
    Used to check compatibility of extensions, by requiring java resource locator and filesystem, which would trigger exceptions such as: Caused by: org.apache.maven.plugin.MojoExecutionException: Accessing the filesystem before the Sensor phase is not supported.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • StartableExtension

      public StartableExtension(org.sonar.api.batch.fs.FileSystem fileSystem, org.sonar.plugins.java.api.JavaResourceLocator javaResourceLocator)
      Used to check compatibility of extensions, by requiring java resource locator and filesystem, which would trigger exceptions such as: Caused by: org.apache.maven.plugin.MojoExecutionException: Accessing the filesystem before the Sensor phase is not supported. Please update your plugin.
      Parameters:
      fileSystem -
      javaResourceLocator -
  • Method Details

    • start

      public void start()