use of com.navercorp.pinpoint.bootstrap.plugin.ProfilerPluginGlobalContext in project pinpoint by naver.
the class MockProfilerPluginContextLoader method load.
@Override
public PluginsSetupResult load(List<ProfilerPlugin> profilerPlugins) {
ProfilerPluginGlobalContext globalContext = new DefaultProfilerPluginGlobalContext(profilerConfig, configuredApplicationType);
PluginsSetupResult pluginsSetupResult = new PluginsSetupResult();
for (ProfilerPlugin profilerPlugin : profilerPlugins) {
PluginSetupResult context = pluginSetup.setupPlugin(globalContext, profilerPlugin, classInjector);
pluginsSetupResult.addPluginSetupResult(context);
}
ServiceType detectedApplicationType = globalContext.getApplicationType();
pluginsSetupResult.setApplicationType(detectedApplicationType);
return pluginsSetupResult;
}
use of com.navercorp.pinpoint.bootstrap.plugin.ProfilerPluginGlobalContext in project pinpoint by naver.
the class DefaultProfilerPluginContextLoader method load.
@Override
public PluginsSetupResult load(List<ProfilerPlugin> profilerPlugins) {
ProfilerPluginGlobalContext globalContext = new DefaultProfilerPluginGlobalContext(profilerConfig, configuredApplicationType);
PluginsSetupResult pluginsSetupResult = new PluginsSetupResult();
JarPluginComponents jarPluginComponents = new JarPluginComponents(pluginJars);
for (ProfilerPlugin profilerPlugin : profilerPlugins) {
jarPluginComponents.addProfilerPlugin(profilerPlugin);
}
Iterable<JarPlugin<ProfilerPlugin>> jarPlugins = jarPluginComponents.buildJarPlugins();
for (JarPlugin<ProfilerPlugin> jarPlugin : jarPlugins) {
List<PluginSetupResult> setupResults = setupPlugin(globalContext, jarPlugin);
pluginsSetupResult.addPluginSetupResults(setupResults);
}
ServiceType detectedApplicationType = globalContext.getApplicationType();
pluginsSetupResult.setApplicationType(detectedApplicationType);
return pluginsSetupResult;
}
Aggregations