summaryrefslogtreecommitdiffstats
path: root/sonar-plugin-api
diff options
context:
space:
mode:
authorDamien Urruty <damien.urruty@sonarsource.com>2021-06-25 17:21:57 +0200
committersonartech <sonartech@sonarsource.com>2021-06-28 20:03:20 +0000
commit7b4f637c565b171d17f33ca7a9d15caf698a092a (patch)
treedc81f383af6eb3d574904e93aa4010b0670dd179 /sonar-plugin-api
parentae03ed92a09a3d27fe631e42b2d31d87138ce711 (diff)
downloadsonarqube-7b4f637c565b171d17f33ca7a9d15caf698a092a.tar.gz
sonarqube-7b4f637c565b171d17f33ca7a9d15caf698a092a.zip
SONAR-15094 Add MODULE lifespan in SonarLintSide annotation
Diffstat (limited to 'sonar-plugin-api')
-rw-r--r--sonar-plugin-api/src/main/java/org/sonarsource/api/sonarlint/SonarLintSide.java14
1 files changed, 14 insertions, 0 deletions
diff --git a/sonar-plugin-api/src/main/java/org/sonarsource/api/sonarlint/SonarLintSide.java b/sonar-plugin-api/src/main/java/org/sonarsource/api/sonarlint/SonarLintSide.java
index 802050deeb0..1b3618b3bc2 100644
--- a/sonar-plugin-api/src/main/java/org/sonarsource/api/sonarlint/SonarLintSide.java
+++ b/sonar-plugin-api/src/main/java/org/sonarsource/api/sonarlint/SonarLintSide.java
@@ -57,10 +57,24 @@ public @interface SonarLintSide {
/**
* The component will be instantiated once and reused by all analyses, as long as the SonarLint engine is not restarted.
+ * @deprecated since 9.0 use {@link #INSTANCE} as a direct replacement
*/
+ @Deprecated
String MULTIPLE_ANALYSES = "MULTIPLE_ANALYSES";
/**
+ * The component will be instantiated when a module is opened and kept alive until the module is closed.
+ * A module is a project in Eclipse, a folder in VSCode and a module in IntelliJ.
+ */
+ String MODULE = "MODULE";
+
+ /**
+ * The component will be instantiated once and reused by all analyses, as long as SonarLint is active in the IDE.
+ * @since 9.0
+ */
+ String INSTANCE = "INSTANCE";
+
+ /**
* Control the lifecycle of the component in the IoC container.
* @since 7.0
*/