Search in sources :

Example 1 with PrivilegedPluginBridge

use of org.sonar.plugin.PrivilegedPluginBridge in project sonarqube by SonarSource.

the class PrivilegedPluginsBootstraper method onServerStart.

@Override
public void onServerStart(Server server) {
    List<PrivilegedPluginBridge> bridges = componentContainer.getComponentsByType(PrivilegedPluginBridge.class);
    for (PrivilegedPluginBridge bridge : bridges) {
        Profiler profiler = Profiler.create(LOGGER).startInfo(format("Bootstrapping %s", bridge.getPluginName()));
        bridge.startPlugin(componentContainer);
        profiler.stopInfo();
    }
}
Also used : PrivilegedPluginBridge(org.sonar.plugin.PrivilegedPluginBridge) Profiler(org.sonar.api.utils.log.Profiler)

Example 2 with PrivilegedPluginBridge

use of org.sonar.plugin.PrivilegedPluginBridge in project sonarqube by SonarSource.

the class PrivilegedPluginsStopper method stop.

@Override
public void stop() {
    List<PrivilegedPluginBridge> bridges = platformContainer.getComponentsByType(PrivilegedPluginBridge.class);
    for (PrivilegedPluginBridge bridge : bridges) {
        Profiler profiler = Profiler.create(LOGGER).startInfo(format("Stopping %s", bridge.getPluginName()));
        bridge.stopPlugin();
        profiler.stopInfo();
    }
}
Also used : PrivilegedPluginBridge(org.sonar.plugin.PrivilegedPluginBridge) Profiler(org.sonar.api.utils.log.Profiler)

Aggregations

Profiler (org.sonar.api.utils.log.Profiler)2 PrivilegedPluginBridge (org.sonar.plugin.PrivilegedPluginBridge)2