Tagged articles
Custom ClassLoader
18 articles · Page 1 of 1
This article walks through the full lifecycle of a Java class—from loading, verification, preparation, and resolution to initialization, usage, and unloading—explains active versus passive references, the parent‑delegation model, JDK 8‑to‑17 module‑system changes, and shows how to write a custom ClassLoader for class isolation.
Class LoadingClassLoaderCustom ClassLoader
0 likes · 26 min read

This guide explains Java's Service Provider Interface (SPI) mechanism, compares it with APIs, and walks through creating a multi‑module Maven project that defines SPI interfaces, implements plugins, loads external JARs with a custom class loader, and integrates the plugins into a Spring Boot application for dynamic authentication.
Custom ClassLoaderDynamic LoadingJava SPI
0 likes · 15 min read

This guide explains how to load external JAR files into the JVM, configure SpringBoot to recognize them, and choose among several class‑loading strategies—including expanding the classpath, using the loader.path parameter, or implementing a custom classloader—while providing Maven configuration examples and code snippets.
Class LoadingCustom ClassLoaderDynamic Configuration
0 likes · 9 min read

This guide explains step‑by‑step how to load external JAR files into the JVM, configure Spring Boot to recognize them, and choose among four practical solutions—including classpath expansion, Spring Boot loader.path, custom class loaders, and JVM boot classpath tweaks—while highlighting their pros, cons, and required Maven settings.
Class LoadingCustom ClassLoaderJVM
0 likes · 10 min read

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

This article explains the purpose of Java's parent delegation class‑loader mechanism, describes its three built‑in loaders, and details common scenarios—such as JNDI, JDBC, Tomcat, and OSGi—where developers intentionally break the delegation to achieve flexibility and isolation.
ClassLoaderCustom ClassLoaderJDBC
0 likes · 10 min read

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 ClassLoaderDynamic LoadingJava
0 likes · 21 min read

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

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

This article explains Java's class loading mechanism in depth, covering the class lifecycle stages, the three primary class loaders, the parent‑delegation model, caching behavior, and practical code examples for custom loaders and dynamic loading methods.
Class LoadingCustom ClassLoaderDynamic Loading
0 likes · 8 min read

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

This article explains Java class loading fundamentals, covering the lifecycle of classes, the three built‑in loaders (Bootstrap, Extension, System), the delegation model, context class loaders, and provides practical examples of creating custom class loaders with complete code snippets.
Custom ClassLoaderDelegationbootstrap
0 likes · 19 min read

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

This article explains why jar version conflicts cause runtime errors in Java, introduces class isolation as a solution, and provides step‑by‑step implementations of custom ClassLoaders using both findClass and loadClass overrides, complete with code examples and execution results.
Class IsolationClassLoaderCustom ClassLoader
0 likes · 13 min read

This article explains how Spring Boot's spring-boot-maven-plugin creates an executable JAR, details its internal structure, the role of JarLauncher and the Spring Boot Loader, and shows how the custom LaunchedURLClassLoader loads classes from embedded dependencies.
Custom ClassLoaderJarLauncherMaven Plugin
0 likes · 12 min read

This article explains the three built‑in Java class loaders, their initialization via the Launcher, the parent‑delegation model, the role of the context class loader, how to create custom loaders, and the key changes introduced in Java 9, providing code examples and diagrams for each concept.
ClassLoaderCustom ClassLoaderJVM
0 likes · 15 min read

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

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
