Search in sources :

Example 1 with PlatformEditionProvider

use of org.sonar.core.platform.PlatformEditionProvider in project sonarqube by SonarSource.

the class ComputeEngineContainerImpl method startLevel4.

private static void startLevel4(SpringComponentContainer level4) {
    level4.getParent().getComponentByType(CECoreExtensionsInstaller.class).install(level4, hasPlatformLevel4OrNone(), noAdditionalSideFilter());
    level4.getParent().getComponentByType(ServerExtensionInstaller.class).installExtensions(level4);
    level4.startComponents();
    PlatformEditionProvider editionProvider = level4.getComponentByType(PlatformEditionProvider.class);
    Loggers.get(ComputeEngineContainerImpl.class).info("Running {} edition", editionProvider.get().map(EditionProvider.Edition::getLabel).orElse(""));
}
Also used : PlatformEditionProvider(org.sonar.core.platform.PlatformEditionProvider) ServerExtensionInstaller(org.sonar.server.plugins.ServerExtensionInstaller) CECoreExtensionsInstaller(org.sonar.ce.platform.CECoreExtensionsInstaller) SonarEdition(org.sonar.api.SonarEdition)

Aggregations

SonarEdition (org.sonar.api.SonarEdition)1 CECoreExtensionsInstaller (org.sonar.ce.platform.CECoreExtensionsInstaller)1 PlatformEditionProvider (org.sonar.core.platform.PlatformEditionProvider)1 ServerExtensionInstaller (org.sonar.server.plugins.ServerExtensionInstaller)1