Getting a list of all classloaders in a JVM

生来就可爱ヽ(ⅴ<●) 提交于 2021-02-07 04:52:11

问题


Is it possible to get a list of all class loaders in a JVM or at least all class loaders associated with web apps in a Java EE Server (WebLogic in my case).


回答1:


There are good overviews on the class loader hierarchy at:

Archived version of http://e-docs.bea.com/wls/docs81/programming/classloading.html

http://weblogic.sys-con.com/node/42876

You can use

ClassLoader.getParent()

to walk through you current application's applications resolution tree, but you really can't look through the children app's class loaders.



来源:https://stackoverflow.com/questions/1026630/getting-a-list-of-all-classloaders-in-a-jvm

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!