Tag

Custom ClassLoader

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
Java Tech Enthusiast
Java Tech Enthusiast
Mar 2, 2024 · Backend Development

Dynamic Loading and Unloading of Java Governance Tasks with Custom ClassLoader and XXL‑Job Integration

The article presents a Java Spring solution that uses a custom URLClassLoader to dynamically load, register, and unload governance task JARs as Spring beans and XXL‑Job handlers at runtime, with configuration persistence via YAML or Nacos and Maven Shade packaging for seamless updates without service restarts.

Custom ClassLoaderSpringdynamic loading
0 likes · 21 min read
Dynamic Loading and Unloading of Java Governance Tasks with Custom ClassLoader and XXL‑Job Integration
Selected Java Interview Questions
Selected Java Interview Questions
Feb 4, 2024 · Backend Development

Dynamic Loading and Unloading of Governance Tasks in Java Using a Custom ClassLoader and XXL‑Job

This article explains how to design a plug‑in style architecture for data‑governance tasks by creating a custom URLClassLoader, dynamically loading JARs into a Spring context, registering and deregistering XXL‑Job handlers, updating configuration via YAML or Nacos, and finally unloading resources without restarting the service.

Configuration ManagementCustom ClassLoaderDynamic Class Loading
0 likes · 17 min read
Dynamic Loading and Unloading of Governance Tasks in Java Using a Custom ClassLoader and XXL‑Job
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
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
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
Java Captain
Java Captain
Dec 5, 2017 · Fundamentals

Understanding the Java Virtual Machine: Class Loading and Runtime Data Area

This article explains the JVM execution process, details the hierarchy and delegation model of class loaders, provides a custom ClassLoader implementation with example code, and describes the structure and function of the runtime data area including heap, method area, stacks, and program counter.

Class LoadingCustom ClassLoaderJVM
0 likes · 11 min read
Understanding the Java Virtual Machine: Class Loading and Runtime Data Area
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 Fundamentals
0 likes · 13 min read
Understanding Java Class Loading Mechanism and Implementing a Custom NetworkClassLoader