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 TypeMethodDescriptionbooleanvoidvoidvoidwrite(String s, InputStream inputStream)
-
Constructor Details
-
SonarLintCache
public SonarLintCache()
-
-
Method Details
-
read
- Specified by:
readin interfaceorg.sonar.api.batch.sensor.cache.ReadCache
-
contains
- Specified by:
containsin interfaceorg.sonar.api.batch.sensor.cache.ReadCache
-
write
- Specified by:
writein interfaceorg.sonar.api.batch.sensor.cache.WriteCache
-
write
- Specified by:
writein interfaceorg.sonar.api.batch.sensor.cache.WriteCache
-
copyFromPrevious
- Specified by:
copyFromPreviousin interfaceorg.sonar.api.batch.sensor.cache.WriteCache
-