Class SonarLintCache
java.lang.Object
org.sonar.plugins.java.api.caching.SonarLintCache
- All Implemented Interfaces:
org.sonar.api.batch.sensor.cache.ReadCache
,org.sonar.api.batch.sensor.cache.WriteCache
@SonarLintSide
@Beta
public class SonarLintCache
extends Object
implements org.sonar.api.batch.sensor.cache.ReadCache, org.sonar.api.batch.sensor.cache.WriteCache
Component used in SonarLint to transfer data in memory between plugins.
At the time of writing, this is used only by the DBD plugin, to consume IRs produced by DBD custom rules in SonarLint context.
This component is just an intermediate solution until a dedicated mechanism to communicate between plugins with sufficient capabilities
is available.
By default, this component has SINGLE_ANALYSIS
lifetime, meaning that it does not need to be manually cleared after analysis.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
void
void
void
write
(String s, InputStream inputStream)
-
Constructor Details
-
SonarLintCache
public SonarLintCache()
-
-
Method Details
-
read
- Specified by:
read
in interfaceorg.sonar.api.batch.sensor.cache.ReadCache
-
contains
- Specified by:
contains
in interfaceorg.sonar.api.batch.sensor.cache.ReadCache
-
write
- Specified by:
write
in interfaceorg.sonar.api.batch.sensor.cache.WriteCache
-
write
- Specified by:
write
in interfaceorg.sonar.api.batch.sensor.cache.WriteCache
-
copyFromPrevious
- Specified by:
copyFromPrevious
in interfaceorg.sonar.api.batch.sensor.cache.WriteCache
-