简体   繁体   English

我如何知道类加载器属于哪个webapp

[英]How can I tell which webapp a classloader belongs to

I have a situation where I have a bunch of classloader instances but no way of knowing what they are for- I know some are for the webapp Is there a way to tell which webapp they belong to ? 我遇到这样的情况,我有一堆类加载器实例,但无法知道它们的用途-我知道一些适用于webapp的方法是否可以分辨出它们属于哪个webapp? These are all instances of the same class type btw -not that it makes a difference... Thanks! 这些都是相同类类型btw的所有实例-但这没有什么不同...谢谢!

我不知道您可以使用什么属性来识别上下文中的webapp类加载器,但是您可以遍历每个上下文,查看其关联的类加载器并以这种方式找到匹配项。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM