Search in sources :

Example 1 with OkHttpClientProvider

use of org.sonar.server.util.OkHttpClientProvider in project sonarqube by SonarSource.

the class PlatformLevel1 method configureLevel.

@Override
public void configureLevel() {
    add(platform, properties);
    addExtraRootComponents();
    Version apiVersion = ApiVersion.load(System2.INSTANCE);
    add(new SonarQubeVersion(apiVersion), SonarRuntimeImpl.forSonarQube(apiVersion, SonarQubeSide.SERVER), ThreadLocalSettings.class, LogServerVersion.class, ProcessCommandWrapperImpl.class, RestartFlagHolderImpl.class, UuidFactoryImpl.INSTANCE, UrlSettings.class, EmbeddedDatabaseFactory.class, LogbackHelper.class, WebServerProcessLogging.class, DefaultDatabase.class, DatabaseChecker.class, // to avoid having two SqlSessionFactory instances
    org.sonar.core.persistence.MyBatis.class, PurgeProfiler.class, ServerFileSystemImpl.class, SemaphoresImpl.class, TempFolderCleaner.class, new TempFolderProvider(), System2.INSTANCE, // user session
    ThreadLocalUserSession.class, // DB
    DbClient.class, DaoModule.class, // Elasticsearch
    EsSearchModule.class, // rules/qprofiles
    RuleIndex.class, ActiveRuleIndex.class, // issues
    IssueIndex.class, new OkHttpClientProvider(), // Classes kept for backward compatibility of plugins/libs (like sonar-license) that are directly calling classes from the core
    org.sonar.core.properties.PropertiesDao.class);
    addAll(CorePropertyDefinitions.all());
    // cluster
    add(ClusterImpl.class);
}
Also used : SonarQubeVersion(org.sonar.api.SonarQubeVersion) LogServerVersion(org.sonar.server.platform.LogServerVersion) Version(org.sonar.api.utils.Version) SonarQubeVersion(org.sonar.api.SonarQubeVersion) ApiVersion(org.sonar.api.internal.ApiVersion) OkHttpClientProvider(org.sonar.server.util.OkHttpClientProvider) TempFolderProvider(org.sonar.server.platform.TempFolderProvider)

Aggregations

SonarQubeVersion (org.sonar.api.SonarQubeVersion)1 ApiVersion (org.sonar.api.internal.ApiVersion)1 Version (org.sonar.api.utils.Version)1 LogServerVersion (org.sonar.server.platform.LogServerVersion)1 TempFolderProvider (org.sonar.server.platform.TempFolderProvider)1 OkHttpClientProvider (org.sonar.server.util.OkHttpClientProvider)1