Java – when to create a custom classloaders?

Why do you need to create a custom classloaders? A real-world example would be great!

Solution

Application servers such as Java EE server and OSGi container use custom class loader to dynamically update and delete software

Other custom class loaders are used to support dynamic code injection (from Java 5.0 instrumentation is preferred)

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>