4.3. Class Loader Hierarchies

Java 2 has two orthogonal class loader hierarchies. The class definition hierarchy contains subclasses of java.lang.ClassLoader. Each subclass in this hierarchy builds on the behavior and semantics of its ancestors. This inheritance hierarchy is covered in Section 4.3.1. The second hierarchy is a dynamic one formed at runtime. This is the class loader delegation hierarchy. In the previous code example, class C constructs a new instance of class D. The class loader delegation hierarchy enables class C to reach class D, regardless of whether class D is a system, extension, application, or other category of class. The class loader delegation hierarchy is described in Section 4.3.2.

4.3.1. Class Loader Inheritance ...

Get Inside Java™ 2 Platform Security: Architecture, API Design, and Implementation, Second Edition 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.