Call class loading callbacks from onComplete
This should make things more clear
MODIFY
dd-java-agent/agent-tooling/src/main/java/datadog/trace/agent/tooling/AgentInstaller.java
dd-java-agent/agent-tooling/src/main/java/datadog/trace/agent/tooling/AgentInstaller.java
@@ -270,13 +270,7 @@ public class AgentInstaller {
final String typeName,
final ClassLoader classLoader,
final JavaModule javaModule,
- final boolean b) {
- for (final Map.Entry<String, Runnable> entry : classLoadCallbacks.entrySet()) {
- if (entry.getKey().equals(typeName)) {
- entry.getValue().run();
- }
- }
- }
+ final boolean b) {}
@Override
public void onTransformation(
@@ -303,10 +297,16 @@ public class AgentInstaller {
@Override
public void onComplete(
- final String s,
+ final String typeName,
final ClassLoader classLoader,
final JavaModule javaModule,
- final boolean b) {}
+ final boolean b) {
+ for (final Map.Entry<String, Runnable> entry : classLoadCallbacks.entrySet()) {
+ if (entry.getKey().equals(typeName)) {
+ entry.getValue().run();
+ }
+ }
+ }
}
private AgentInstaller() {}

Call class loading callbacks from onComplete

This should make things more clear