Tag

Parent Delegation

0 views collected around this technical thread.

macrozheng
macrozheng
Oct 25, 2024 · Fundamentals

Why and How Java Breaks the Parent Delegation Model: Real-World Scenarios

This article explains the purpose of Java's parent‑delegation class‑loading mechanism, describes its three built‑in loaders, shows how custom loaders can override it, and explores common situations—such as JNDI, JDBC, Tomcat, and OSGi—where developers intentionally break the delegation for flexibility and modularity.

ClassLoaderCustom ClassLoaderJDBC
0 likes · 11 min read
Why and How Java Breaks the Parent Delegation Model: Real-World Scenarios
Top Architecture Tech Stack
Top Architecture Tech Stack
Aug 27, 2024 · Backend Development

Understanding Java's Parent Delegation Model for Class Loaders

The article explains Java's parent delegation model for class loaders, its benefits for stability and security, how to break it by customizing loadClass or using thread‑context class loaders, and illustrates common scenarios such as JNDI, JDBC and Tomcat's own class‑loader hierarchy.

ClassLoaderJVMJava
0 likes · 10 min read
Understanding Java's Parent Delegation Model for Class Loaders
Mike Chen's Internet Architecture
Mike Chen's Internet Architecture
Feb 6, 2024 · Fundamentals

Understanding Java's Parent Delegation Mechanism in JVM Class Loading

This article explains Java's parent delegation mechanism—a core part of the JVM class‑loading process—detailing its purpose, three main benefits (avoiding duplicate loading, ensuring security, improving efficiency), and the step‑by‑step loading workflow illustrated with diagrams.

Class LoadingJVMJava
0 likes · 6 min read
Understanding Java's Parent Delegation Mechanism in JVM Class Loading
Top Architect
Top Architect
Nov 23, 2023 · Backend Development

Understanding Java Class Loading Mechanism and Tomcat’s ClassLoader Design

This article explains the Java class loading mechanism, the parent‑delegation model, how it can be broken, and then details Tomcat’s custom classloader hierarchy—including CommonClassLoader, CatalinaClassLoader, SharedClassLoader, and WebappClassLoader—showing why Tomcat deviates from the standard delegation model.

Backend DevelopmentClass LoadingJava
0 likes · 15 min read
Understanding Java Class Loading Mechanism and Tomcat’s ClassLoader Design
IT Services Circle
IT Services Circle
Mar 11, 2023 · Fundamentals

Understanding Java Class Loaders and the Parent Delegation Model

This article explains the Java class‑loading mechanism, reviews the load‑link‑initialize process, describes the built‑in Bootstrap, Extension and Application class loaders, introduces the parent‑delegation model, shows its execution flow with code examples, and discusses how to customize or break the model.

ClassLoaderCustom ClassLoaderJVM
0 likes · 16 min read
Understanding Java Class Loaders and the Parent Delegation Model
Sanyou's Java Diary
Sanyou's Java Diary
Feb 6, 2022 · Fundamentals

Demystifying Java Class Loading: Steps, ClassLoaders, and Common Pitfalls

This article explains the Java class loading lifecycle, the different built‑in and custom ClassLoaders, the parent‑delegation model, reasons for breaking it (e.g., JDBC and Tomcat), how to implement custom loaders, hot‑deployment techniques, and includes typical interview code questions.

ClassLoaderHot DeploymentJVM
0 likes · 13 min read
Demystifying Java Class Loading: Steps, ClassLoaders, and Common Pitfalls
Ops Development Stories
Ops Development Stories
Jan 14, 2022 · Fundamentals

When Does Java Load a Class? Exploring the 7 Stages, Parent Delegation, and Custom ClassLoaders

This article explains the complete Java class loading lifecycle—including loading, verification, preparation, resolution, initialization, usage, and unloading—details the seven scenarios that trigger active loading, illustrates the parent delegation model, and provides code examples for custom and Tomcat class loaders.

Class LoadingClassLoaderCustom ClassLoader
0 likes · 16 min read
When Does Java Load a Class? Exploring the 7 Stages, Parent Delegation, and Custom ClassLoaders
Selected Java Interview Questions
Selected Java Interview Questions
Nov 15, 2021 · Backend Development

Understanding Java Class Loading, the Parent Delegation Model, and Tomcat’s Custom ClassLoaders

This article reviews Java’s default class loading mechanism and parent‑delegation model, explains how the model can be broken, and details Tomcat’s custom classloader architecture—including Common, Catalina, Shared, Webapp, and JSP loaders—showing why Tomcat deviates from the standard delegation hierarchy.

Backend DevelopmentClassLoaderJava
0 likes · 14 min read
Understanding Java Class Loading, the Parent Delegation Model, and Tomcat’s Custom ClassLoaders
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Jan 19, 2021 · Backend Development

Understanding Java's Parent Delegation Model: Mechanism, Implementation, and How to Break It

This article explains Java's parent delegation class‑loading model, describes the four built‑in class loaders, details why delegation is needed, shows the loadClass implementation, and discusses how and why the mechanism can be overridden in frameworks such as JDBC, Tomcat, OSGi, and the Java 9 module system.

Class LoadingClassLoaderCustom ClassLoader
0 likes · 14 min read
Understanding Java's Parent Delegation Model: Mechanism, Implementation, and How to Break It
Selected Java Interview Questions
Selected Java Interview Questions
Jun 12, 2020 · Fundamentals

Deep Dive into Java ClassLoader, Class Loading Process, and the Parent‑Delegation Model

This article explains when and how Java classes are loaded, details the JVM's ClassLoader implementation—including the native defineClass1 method, InstanceKlass creation, SystemDictionary registration, and parallel loading locks—then demonstrates breaking the parent‑delegation model with a custom ClassLoader and discusses practical usage scenarios.

Class LoadingClassLoaderJVM
0 likes · 18 min read
Deep Dive into Java ClassLoader, Class Loading Process, and the Parent‑Delegation Model
Java Captain
Java Captain
Aug 22, 2017 · Fundamentals

Understanding Java Class Loading Mechanism and Implementing a Custom NetworkClassLoader

This article explains Java's class loading process, the sources of class files, the hierarchy of built‑in class loaders, the parent‑delegation model, and demonstrates how to create and use a custom NetworkClassLoader for dynamic remote class loading.

ClassLoaderCustom ClassLoaderJava
0 likes · 13 min read
Understanding Java Class Loading Mechanism and Implementing a Custom NetworkClassLoader