Tag

ContextClassLoader

1 views collected around this technical thread.

Cognitive Technology Team
Cognitive Technology Team
Apr 18, 2025 · Fundamentals

Understanding Java Context ClassLoader and Its Role in Breaking the Parent Delegation Model

This article explains why Java introduced the Context ClassLoader to bypass the parent‑delegation model, how it enables SPI mechanisms such as JDBC drivers, and the specific class‑loading pitfalls encountered when running Spring Boot applications as executable JARs.

ClassLoaderContextClassLoaderJava
0 likes · 7 min read
Understanding Java Context ClassLoader and Its Role in Breaking the Parent Delegation Model
Cognitive Technology Team
Cognitive Technology Team
May 7, 2022 · Fundamentals

Understanding Java Context ClassLoader and How It Breaks the Parent Delegation Model

This article explains why Java introduced the Context ClassLoader to bypass the parent‑delegation model, demonstrates its role in SPI mechanisms such as JDBC driver loading, compares class loader behavior in Spring Boot development versus packaged execution, and highlights common pitfalls when using custom class loaders.

ClassLoaderContextClassLoaderJava
0 likes · 8 min read
Understanding Java Context ClassLoader and How It Breaks the Parent Delegation Model