Search in sources :

Example 1 with ConfigurationProvider

use of org.sonar.server.config.ConfigurationProvider in project sonarqube by SonarSource.

the class ComputeEngineContainerImpl method populateLevel1.

private static void populateLevel1(Container container, Props props, ComputeEngineStatus computeEngineStatus) {
    Version apiVersion = MetadataLoader.loadVersion(System2.INSTANCE);
    SonarEdition edition = MetadataLoader.loadEdition(System2.INSTANCE);
    container.add(props.rawProperties(), ThreadLocalSettings.class, new ConfigurationProvider(), new SonarQubeVersion(apiVersion), SonarRuntimeImpl.forSonarQube(apiVersion, SonarQubeSide.COMPUTE_ENGINE, edition), CeProcessLogging.class, UuidFactoryImpl.INSTANCE, NetworkUtilsImpl.INSTANCE, WebServerImpl.class, LogbackHelper.class, DefaultDatabase.class, MyBatis.class, PurgeProfiler.class, ServerFileSystemImpl.class, new TempFolderProvider(), System2.INSTANCE, Paths2Impl.getInstance(), Clock.systemDefaultZone(), // DB
    new DaoModule(), ReadOnlyPropertiesDao.class, DBSessionsImpl.class, DbClient.class, // Elasticsearch
    new EsModule(), // rules/qprofiles
    RuleIndex.class, new OkHttpClientProvider(), computeEngineStatus, NoOpAuditPersister.class, CoreExtensionRepositoryImpl.class, CoreExtensionsLoader.class, CECoreExtensionsInstaller.class);
    container.add(toArray(CorePropertyDefinitions.all()));
}
Also used : SonarQubeVersion(org.sonar.api.SonarQubeVersion) EsModule(org.sonar.server.es.EsModule) Version(org.sonar.api.utils.Version) SonarQubeVersion(org.sonar.api.SonarQubeVersion) DatabaseVersion(org.sonar.server.platform.db.migration.version.DatabaseVersion) ConfigurationProvider(org.sonar.server.config.ConfigurationProvider) OkHttpClientProvider(org.sonar.server.util.OkHttpClientProvider) TempFolderProvider(org.sonar.server.platform.TempFolderProvider) DaoModule(org.sonar.db.DaoModule) SonarEdition(org.sonar.api.SonarEdition)

Aggregations

SonarEdition (org.sonar.api.SonarEdition)1 SonarQubeVersion (org.sonar.api.SonarQubeVersion)1 Version (org.sonar.api.utils.Version)1 DaoModule (org.sonar.db.DaoModule)1 ConfigurationProvider (org.sonar.server.config.ConfigurationProvider)1 EsModule (org.sonar.server.es.EsModule)1 TempFolderProvider (org.sonar.server.platform.TempFolderProvider)1 DatabaseVersion (org.sonar.server.platform.db.migration.version.DatabaseVersion)1 OkHttpClientProvider (org.sonar.server.util.OkHttpClientProvider)1