use of com.navercorp.pinpoint.profiler.plugin.TransformCallbackProvider in project pinpoint by naver.
the class TestClassLoader method addTransformer.
public void addTransformer(final String targetClassName, final TransformCallback transformer) {
if (logger.isLoggable(Level.FINE)) {
logger.fine("addTransformer targetClassName:{}" + targetClassName + " callback:{}" + transformer);
}
final Matcher matcher = Matchers.newClassNameMatcher(targetClassName);
final TransformCallbackProvider transformCallbackProvider = new InstanceTransformCallbackProvider(transformer);
final MatchableClassFileTransformerDelegate guard = new MatchableClassFileTransformerDelegate(applicationContext.getProfilerConfig(), instrumentContext, matcher, transformCallbackProvider);
this.instrumentTranslator.addTransformer(guard);
}
Aggregations