Uploaded image for project: 'SonarQube'
  1. SonarQube
  2. SONAR-7661

Add Startable interface to explicitly create components started/stopped by container

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.6
    • Component/s: Plugin API
    • Labels:

      Description

      Currently, any component loaded into the WebServer/Batch/CE container which defines methods "start", "stop" and/or "close" without arguments has these methods called by the container when the component is created or stopped/closed.

      This behavior, even though it is documented, should be replaced by an interface Startable in the API which defines methods "start" and "stop".

      In addition to promoting better design, having this interface will have the benefice for components in obfuscated plugins to ensure method start/stop aren't renamed by the tool (being plugin commercial plugins from SonarSource plugins from other vendors).

        Attachments

          Activity

            People

            Assignee:
            sebastien.lesaint Sebastien Lesaint
            Reporter:
            sebastien.lesaint Sebastien Lesaint
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Due:
              Created:
              Updated:
              Resolved: