Search in sources :

Example 1 with PluginSetup

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;
}
Also used : SetupResult(com.navercorp.pinpoint.profiler.plugin.SetupResult) PluginSetup(com.navercorp.pinpoint.profiler.plugin.PluginSetup) ArrayList(java.util.ArrayList) ProfilerPlugin(com.navercorp.pinpoint.bootstrap.plugin.ProfilerPlugin) ClassInjector(com.navercorp.pinpoint.profiler.instrument.classloading.ClassInjector)

Aggregations

ProfilerPlugin (com.navercorp.pinpoint.bootstrap.plugin.ProfilerPlugin)1 ClassInjector (com.navercorp.pinpoint.profiler.instrument.classloading.ClassInjector)1 PluginSetup (com.navercorp.pinpoint.profiler.plugin.PluginSetup)1 SetupResult (com.navercorp.pinpoint.profiler.plugin.SetupResult)1 ArrayList (java.util.ArrayList)1