提交 6fff2a81 编写于 作者: A Alan Lau 提交者: wu-sheng

Remove the unused method. & Modify doc. (#2692)

上级 b76839fe
......@@ -52,7 +52,7 @@ public class SnifferConfigInitializer {
/**
* If the specified agent config path is set, the agent will try to locate the specified agent config. If the
* specified agent config path is not set , the agent will try to locate `agent.config`, which should be in the
* /config dictionary of agent package.
* /config directory of agent package.
* <p>
* Also try to override the config by system.properties. All the keys in this place should
* start with {@link #ENV_KEY_PREFIX}. e.g. in env `skywalking.agent.service_name=yourAppName` to override
......
......@@ -55,26 +55,4 @@ public class PluginResourcesResolver {
}
return null;
}
/**
* Get the classloader.
* First getDefault current thread's classloader,
* if fail, getDefault {@link PluginResourcesResolver}'s classloader.
*
* @return the classloader to find plugin definitions.
*/
private ClassLoader getDefaultClassLoader() {
ClassLoader cl = null;
try {
cl = Thread.currentThread().getContextClassLoader();
} catch (Throwable ex) {
// Cannot access thread context ClassLoader - falling back to system class loader...
}
if (cl == null) {
// No thread context class loader -> use class loader of this class.
cl = PluginResourcesResolver.class.getClassLoader();
}
return cl;
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册