Search in sources :

Example 1 with GlobalTempFolderProvider

use of org.sonarsource.sonarlint.core.container.global.GlobalTempFolderProvider 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);
}
Also used : SonarQubeVersion(org.sonar.api.SonarQubeVersion) Version(org.sonar.api.utils.Version) SonarQubeVersion(org.sonar.api.SonarQubeVersion) ApiVersion(org.sonar.api.internal.ApiVersion) GlobalTempFolderProvider(org.sonarsource.sonarlint.core.container.global.GlobalTempFolderProvider) PluginCacheProvider(org.sonarsource.sonarlint.core.plugin.cache.PluginCacheProvider)

Example 2 with GlobalTempFolderProvider

use of org.sonarsource.sonarlint.core.container.global.GlobalTempFolderProvider 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);
}
Also used : SonarQubeVersion(org.sonar.api.SonarQubeVersion) Version(org.sonar.api.utils.Version) SonarQubeVersion(org.sonar.api.SonarQubeVersion) ApiVersion(org.sonar.api.internal.ApiVersion) GlobalTempFolderProvider(org.sonarsource.sonarlint.core.container.global.GlobalTempFolderProvider) PluginCacheProvider(org.sonarsource.sonarlint.core.plugin.cache.PluginCacheProvider)

Aggregations

SonarQubeVersion (org.sonar.api.SonarQubeVersion)2 ApiVersion (org.sonar.api.internal.ApiVersion)2 Version (org.sonar.api.utils.Version)2 GlobalTempFolderProvider (org.sonarsource.sonarlint.core.container.global.GlobalTempFolderProvider)2 PluginCacheProvider (org.sonarsource.sonarlint.core.plugin.cache.PluginCacheProvider)2