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();
}
}
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();
}
}
Aggregations