use of com.navercorp.pinpoint.profiler.plugin.PluginSetup in project pinpoint by naver.
the class MockPluginContextLoadResult method load.
private List<SetupResult> load() {
List<ProfilerPlugin> plugins = PluginLoader.load(ProfilerPlugin.class, ClassLoader.getSystemClassLoader());
List<SetupResult> pluginContexts = new ArrayList<SetupResult>();
ClassInjector classInjector = new TestProfilerPluginClassLoader();
PluginSetup pluginSetup = new MockPluginSetup(profilerConfig, instrumentEngine, dynamicTransformTrigger);
for (ProfilerPlugin plugin : plugins) {
SetupResult context = pluginSetup.setupPlugin(plugin, classInjector);
pluginContexts.add(context);
}
return pluginContexts;
}
Aggregations