2han9wen71an commented on code in PR #448:
URL: https://github.com/apache/skywalking-java/pull/448#discussion_r1096490680
##########
apm-sniffer/apm-agent-core/src/main/java/org/apache/skywalking/apm/agent/core/plugin/loader/InterceptorInstanceLoader.java:
##########
@@ -62,7 +62,7 @@ public static <T> T load(String className,
try {
pluginLoader =
EXTEND_PLUGIN_CLASSLOADERS.get(targetClassLoader);
if (pluginLoader == null) {
- pluginLoader = new AgentClassLoader(targetClassLoader);
+ pluginLoader =
AgentClassLoader.getClassLoader(targetClassLoader);
Review Comment:
`EXTEND_PLUGIN_CLASSLOADERS` is a storage place to get the
`AgentClassLoader`, and the `AgentClassLoader.getClassLoader` method is to get
all the classes in the bundle and the class loader of the skywalking plugin,
which can be used for other places later
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]