Package org.sonarsource.api.sonarlint
Annotation Type SonarLintSide
-
@Documented @Retention(RUNTIME) @Target(TYPE) public @interface SonarLintSideMarker annotation for all the components available in container of sonarlint. Note that injection of dependencies by constructor is used :@SonarLintSide public class Foo { } @SonarLintSide public class Bar { private final Foo foo; public Bar(Foo f) { this.foo = f; } }- Since:
- 6.0
-
-
Field Summary
Fields Modifier and Type Fields Description static java.lang.StringINSTANCEThe component will be instantiated once and reused by all analyses, as long as SonarLint is active in the IDE.static java.lang.StringMODULEThe component will be instantiated when a module is opened and kept alive until the module is closed.static java.lang.StringMULTIPLE_ANALYSESDeprecated.since 9.0 useINSTANCEas a direct replacementstatic java.lang.StringSINGLE_ANALYSISThe component will be instantiated for each analysis (could be single or multiple files analysis).
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description java.lang.StringlifespanControl the lifecycle of the component in the IoC container.
-
-
-
-
MULTIPLE_ANALYSES
@Deprecated static final java.lang.String MULTIPLE_ANALYSES
Deprecated.since 9.0 useINSTANCEas a direct replacementThe component will be instantiated once and reused by all analyses, as long as the SonarLint engine is not restarted.
-
-