Scenario when a custom class loader might be needed?

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?

+5
source share
1 answer

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.

    , , , .

  • .

    , -.

  • .

    , , . , , , . , , .

+9

All Articles