use of com.navercorp.pinpoint.bootstrap.instrument.transformer.TransformTemplateAware in project pinpoint by naver.
the class DefaultPluginSetup method preparePlugin.
private GuardInstrumentContext preparePlugin(ProfilerPlugin plugin, InstrumentContext instrumentContext) {
final GuardInstrumentContext guardInstrumentContext = new GuardInstrumentContext(instrumentContext);
if (plugin instanceof TransformTemplateAware) {
if (logger.isDebugEnabled()) {
logger.debug("{}.setTransformTemplate", plugin.getClass().getName());
}
final TransformTemplate transformTemplate = new TransformTemplate(guardInstrumentContext);
((TransformTemplateAware) plugin).setTransformTemplate(transformTemplate);
}
return guardInstrumentContext;
}
use of com.navercorp.pinpoint.bootstrap.instrument.transformer.TransformTemplateAware in project pinpoint by naver.
the class MockPluginSetup method preparePlugin.
/**
* TODO duplicated code : com/navercorp/pinpoint/profiler/plugin/ProfilerPluginLoader.java
* @param plugin
* @param context
*/
private void preparePlugin(ProfilerPlugin plugin, InstrumentContext context) {
if (plugin instanceof TransformTemplateAware) {
final TransformTemplate transformTemplate = new TransformTemplate(context);
((TransformTemplateAware) plugin).setTransformTemplate(transformTemplate);
}
}
Aggregations