The following is from Zhou Zhiming's in-depth understanding of Java virtual machines.
Learn the JEE specification, go to the JBoss source code, learn the class loader, to see the OSGi source code.
OSGI, the Open Service Gateway Initiative, is a dynamic modular specification based on the Java language.
Only the export package can be accessed by an external module.
OSGi allows for module-level hot-swappable functions.
The relationship between the loaders in OSGi is no longer the tree structure of the parent delegation model, but is further developed into a more complex network structure that can be determined at runtime. Although the network structure is flexible, it can also bring hidden dangers.
OSGi is too complex for me to be a Java beginner, and for the time being, I'm ready to learn OSGi and JBoss when I'm ripe for it.
[Reading notes] Osgi-Flexible class Loader architecture