Search in sources :

Example 1 with ServerExtensionInstaller

use of org.sonar.server.plugins.ServerExtensionInstaller in project sonarqube by SonarSource.

the class PlatformLevel4 method start.

@Override
public PlatformLevel start() {
    ServerExtensionInstaller extensionInstaller = get(ServerExtensionInstaller.class);
    extensionInstaller.installExtensions(getContainer());
    super.start();
    return this;
}
Also used : ServerExtensionInstaller(org.sonar.server.plugins.ServerExtensionInstaller)

Example 2 with ServerExtensionInstaller

use of org.sonar.server.plugins.ServerExtensionInstaller in project sonarqube by SonarSource.

the class ComputeEngineContainerImpl method start.

@Override
public ComputeEngineContainer start(Props props) {
    this.level1 = new ComponentContainer();
    this.level1.add(props.rawProperties()).add(level1Components()).add(toArray(CorePropertyDefinitions.all()));
    configureFromModules(this.level1);
    this.level1.startComponents();
    ComponentContainer level2 = this.level1.createChild();
    level2.add(level2Components());
    configureFromModules(level2);
    level2.startComponents();
    ComponentContainer level3 = level2.createChild();
    level3.add(level3Components());
    configureFromModules(level3);
    level3.startComponents();
    this.level4 = level3.createChild();
    this.level4.add(level4Components());
    configureFromModules(this.level4);
    ServerExtensionInstaller extensionInstaller = this.level4.getComponentByType(ServerExtensionInstaller.class);
    extensionInstaller.installExtensions(this.level4);
    this.level4.startComponents();
    startupTasks();
    return this;
}
Also used : ComponentContainer(org.sonar.core.platform.ComponentContainer) ServerExtensionInstaller(org.sonar.server.plugins.ServerExtensionInstaller)

Aggregations

ServerExtensionInstaller (org.sonar.server.plugins.ServerExtensionInstaller)2 ComponentContainer (org.sonar.core.platform.ComponentContainer)1