I'm looking for a simple scenario where you might need to create a custom class loader?
Also, just wanted to confirm that even the bootloader and application loader extends java.lang.ClassLoader inside?
In short, it can be used to add new code or to modify existing code on the fly. Here is a more detailed explanation of this URL .
Why write a custom classloader?
Three main reasons for creating a custom class loader:
Allow loading classes from alternative repositories.
, , , .
.
, -.
, , . , , , . , , .