how to share objects between different classloaders?

前端 未结 3 1593
陌清茗
陌清茗 2021-01-01 19:03

I need different classloaders to be able to unload classes. But i need to share objects between them (actually i am getting ClassCastException). So what are the solutions to

3条回答
  •  青春惊慌失措
    2021-01-01 19:20

    Objects from different classloaders can interact with each other through interfaces and classes loaded by a common classloader.

提交回复
热议问题