Chapter 5. Customizing Class Loading

Chapter 2 described using the class loaders installed by the Java launcher and also using your own instances of URLClassLoader. These techniques solve many of the class loader problems you are likely to face. However, there are times when it would be nice to use a custom class loader. For instance, you may want to distribute classes with a protocol other than http, load classes from an object database, or extract classes from a version control system. More interestingly, you may want to modify the semantics of class loading. You might insert additional information, such as instrumentation for debugging, profiling, or auditing, or you might want to process custom metadata that you have added to the binary class ...

Get Component Development for the Java™ Platform now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.