Package org.sonar.api

Class SonarPlugin

  • All Implemented Interfaces:
    Plugin

    @Deprecated
    public abstract class SonarPlugin
    extends java.lang.Object
    implements Plugin
    Deprecated.
    replaced by Plugin in version 5.6.
    Plugin entry-point used to declare its extensions (see org.sonar.api.Extension.

    The JAR manifest must declare the name of the implementation class in the property Plugin-Class. This property is automatically set by sonar-packaging-maven-plugin when building plugin.

    Since:
    2.8
    • Nested Class Summary

    • Constructor Summary

      Constructors 
      Constructor Description
      SonarPlugin()
      Deprecated.
       
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      void define​(Plugin.Context context)
      Deprecated.
      This method is executed at runtime when: Web Server starts Compute Engine starts Scanner starts
      abstract java.util.List getExtensions()
      Deprecated.
      Classes of the implemented extensions.
      java.lang.String toString()
      Deprecated.
      Returns a string representation of the plugin, suitable for debugging purposes only.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • SonarPlugin

        public SonarPlugin()
        Deprecated.
    • Method Detail

      • getExtensions

        public abstract java.util.List getExtensions()
        Deprecated.
        Classes of the implemented extensions.
      • toString

        public java.lang.String toString()
        Deprecated.
        Returns a string representation of the plugin, suitable for debugging purposes only.
        Overrides:
        toString in class java.lang.Object
      • define

        public void define​(Plugin.Context context)
        Deprecated.
        Description copied from interface: Plugin
        This method is executed at runtime when:
        • Web Server starts
        • Compute Engine starts
        • Scanner starts
        Specified by:
        define in interface Plugin