use of org.sonarsource.sonarlint.core.plugin.cache.PluginCacheProvider in project sonarlint-core by SonarSource.
the class StandaloneGlobalContainer method doBeforeStart.
@Override
protected void doBeforeStart() {
Version version = ApiVersion.load(System2.INSTANCE);
add(StandalonePluginIndex.class, PluginRepository.class, PluginVersionChecker.class, PluginCacheLoader.class, PluginLoader.class, PluginClassloaderFactory.class, DefaultPluginJarExploder.class, ExtensionInstaller.class, new SonarQubeVersion(version), SonarRuntimeImpl.forSonarLint(version), new GlobalTempFolderProvider(), UriReader.class, new PluginCacheProvider(), System2.INSTANCE);
}
use of org.sonarsource.sonarlint.core.plugin.cache.PluginCacheProvider in project sonarlint-core by SonarSource.
the class DefaultPluginJarExploderTest method setUp.
@Before
public void setUp() throws IOException {
userHome = temp.newFolder();
PluginCache fileCache = new PluginCacheProvider().provide(StandaloneGlobalConfiguration.builder().setSonarLintUserHome(userHome.toPath()).build());
underTest = new DefaultPluginJarExploder(fileCache);
}
use of org.sonarsource.sonarlint.core.plugin.cache.PluginCacheProvider in project sonarlint-core by SonarSource.
the class StorageContainer method doBeforeStart.
@Override
protected void doBeforeStart() {
Version version = ApiVersion.load(System2.INSTANCE);
add(StorageContainerHandler.class, // storage directories and tmp
StoragePaths.class, StorageReader.class, new GlobalTempFolderProvider(), // plugins
PluginRepository.class, PluginCacheLoader.class, PluginVersionChecker.class, PluginLoader.class, PluginClassloaderFactory.class, DefaultPluginJarExploder.class, StoragePluginIndexProvider.class, new PluginCacheProvider(), // storage readers
AllModulesReader.class, IssueStoreReader.class, GlobalUpdateStatusReader.class, ModuleStorageStatusReader.class, StorageRuleDetailsReader.class, IssueStoreFactory.class, // analysis
StorageAnalyzer.class, StorageFileExclusions.class, // needed during analysis (immutable)
UriReader.class, ExtensionInstaller.class, new StorageRulesProvider(), new StorageQProfilesProvider(), new SonarQubeRulesProvider(), new SonarQubeVersion(version), SonarRuntimeImpl.forSonarLint(version), System2.INSTANCE);
}
Aggregations