Tagged articles
ServiceLoader
39 articles · Page 1 of 1
The article compares Java’s native SPI with Spring’s custom SPI, explains the fundamental flaws of ServiceLoader, details SpringFactoriesLoader’s lazy loading and conditional filtering, and shows why SpringBoot auto‑configuration relies entirely on its own SPI mechanism.
AutoConfigurationJavaSPI
0 likes · 13 min read

The article explains Java SPI’s purpose, how the thread context class loader overcomes parent‑delegation limits, and compares the standard JDK SPI with the extended mechanisms used by Kafka Connect, Elasticsearch, Dubbo, and Spring Boot, providing interview‑ready insights and concrete code examples.
DubboElasticsearchJava
0 likes · 14 min read

The article explains why rebuilding and redeploying a whole JAR for small rule or script changes is inefficient, distinguishes development‑time hot reload from production hot deployment, and shows how a plugin architecture using URLClassLoader and ServiceLoader provides granular, rollback‑friendly, and extensible updates while warning of classloader leaks and dependency conflicts.
Hot DeploymentJavaPlugin Architecture
0 likes · 8 min read

This article provides a detailed walkthrough of SpringBoot plugin development, covering the benefits of modular decoupling, common implementation approaches such as Java SPI, custom configuration, Spring factories, and practical code examples that demonstrate how to create, load, and use plugins for extensible SMS services.
Java SPIServiceLoaderSpringBoot
0 likes · 20 min read

This article explains Java's built‑in Service Provider Interface (SPI) mechanism, demonstrates how to create and load SPI implementations with ServiceLoader, and then shows how Spring extends SPI using spring.factories with detailed code examples and source‑code analysis.
SPIServiceLoaderSpring
0 likes · 8 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 article explains how to design and implement a plugin architecture in Java, covering the standard ServiceLoader SPI, custom configuration‑driven loading, dynamic JAR loading with reflection, and Spring Boot's spring.factories mechanism, complete with practical code examples and diagrams.
JavaSPIServiceLoader
0 likes · 20 min read

This article explains the Java Service Provider Interface (SPI) concept, contrasts it with traditional APIs, details the ServiceLoader mechanism, showcases real‑world uses in JDBC, Spring, and Dubbo, and discusses its advantages and drawbacks for building modular back‑end systems.
BackendExtensibilityJava
0 likes · 21 min read

This article explains the concept and benefits of plugin-based development in Java, introduces common implementation approaches such as SPI, custom configuration, and Spring Boot's spring.factories, and provides step‑by‑step code examples and a real‑world case study to help developers build extensible backend systems.
ExtensibilityJavaPlugin Architecture
0 likes · 21 min read

This article explains how to design and implement a plugin mechanism in Java and Spring Boot, covering the benefits of modular decoupling, common implementation patterns such as ServiceLoader and custom configuration files, and practical code examples for building extensible backend services.
JavaPlugin ArchitectureServiceLoader
0 likes · 23 min read

This article introduces Java's Service Provider Interface (SPI), demonstrates a step‑by‑step example with multiple Maven modules, explains how to create interface and implementation classes, configure META‑INF/services files, and delves into the ServiceLoader internals that enable runtime discovery and instantiation of providers.
JavaSPIServiceLoader
0 likes · 9 min read

This guide explains Java's Service Provider Interface (SPI), detailing its purpose for decoupling implementations, step-by-step project setup, code examples, configuration files, and an in-depth analysis of ServiceLoader's internal mechanisms, enabling developers to create flexible, extensible Java applications.
DependencyInjectionJavaModularDesign
0 likes · 12 min read

This article explains Java and Spring Boot plugin mechanisms, covering benefits, common implementation strategies such as ServiceLoader, custom configuration files, and Spring Factories, and provides practical code examples and a real‑world case study to illustrate extensible architecture design.
JavaPlugin ArchitectureSPI
0 likes · 21 min read

This comprehensive guide explains how to implement plugin mechanisms in Java and Spring Boot, covering ServiceLoader (SPI), custom configuration with reflection, dynamic JAR loading, and Spring's spring.factories, complete with code examples and practical micro‑service use cases.
SPIServiceLoaderSpringBoot
0 likes · 19 min read

This article explains the concept of plugin-based development, outlines its benefits such as module decoupling and extensibility, and provides detailed Java implementations using ServiceLoader, custom configuration files, dynamic JAR loading, and Spring Boot's spring.factories mechanism with complete code examples.
JavaSPIServiceLoader
0 likes · 21 min read

This article explains Java's Service Provider Interface (SPI), compares it with traditional APIs, and provides a step‑by‑step guide with Maven project setup, code examples, custom class loader, and Spring Boot integration to build a modular plugin system.
JavaMavenSPI
0 likes · 13 min read

This article explains Java's built‑in Service Provider Interface (SPI) mechanism, demonstrates how to implement and test SPI with sample code, analyzes its internal workings and limitations, and then shows how Spring extends SPI using spring.factories with comparable examples and source‑code insights.
BackendDependencyInjectionJava
0 likes · 7 min read

This article explains Java's built‑in Service Provider Interface (SPI) mechanism, demonstrates how to create interfaces, implementations, and configuration files, shows testing with ServiceLoader, and compares it to Spring's SPI implementation using spring.factories, including code examples and analysis of their advantages and limitations.
BackendJavaSPI
0 likes · 7 min read

This article explains the concept of Service Provider Interface (SPI), demonstrates how Java's ServiceLoader, Spring's SpringFactoriesLoader, and Dubbo's ExtensionLoader implement SPI, compares their configurations and capabilities, and discusses advanced features such as adaptive extensions, IOC/AOP integration, wrappers, and auto‑activation.
DubboExtensionLoaderJava
0 likes · 15 min read

This article explains the concept and benefits of plugin-based development, outlines common Java implementation approaches such as SPI, configuration‑driven reflection, runtime JAR loading, and Spring Boot's spring.factories, and provides detailed code examples and a complete case study demonstrating flexible, hot‑pluggable SMS services.
JavaPlugin ArchitectureSPI
0 likes · 19 min read

This article explains the benefits and common practices of plugin‑based development in Java, covering module decoupling, extensibility, third‑party integration, and detailed implementations using Java SPI, custom configuration loading, and Spring Boot's spring.factories mechanism with practical code examples.
SPIServiceLoaderSpringBoot
0 likes · 18 min read

This article explains the principles and practical implementations of plugin-based development in Java, covering SPI, custom configuration, runtime JAR loading, and Spring Boot factories, and demonstrates how to build flexible, extensible systems with real code examples.
JavaPlugin ArchitectureSPI
0 likes · 20 min read

This article explains the concept of plugin‑based development, outlines its benefits such as decoupling and extensibility, and provides step‑by‑step Java implementations using ServiceLoader, custom configuration files, and Spring Boot's spring.factories mechanism, complete with runnable code examples.
JavaSPIServiceLoader
0 likes · 21 min read

This article explains the concept of plugin‑based development in Java, outlines its advantages such as decoupling and extensibility, and provides detailed implementation guides using ServiceLoader, custom configuration files, and Spring Boot's spring.factories mechanism with complete code examples.
JavaPlugin ArchitectureSPI
0 likes · 20 min read

This article explains Java’s Service Provider Interface (SPI), its role as a service‑discovery mechanism, typical use cases such as JDBC drivers and logging facades, step‑by‑step usage instructions, core implementation details, advantages, drawbacks, and a comparison with Dubbo and Spring SPI implementations.
JavaPlugin ArchitectureSPI
0 likes · 10 min read

This article explains the principles and differences of the SPI mechanisms in Java, Spring, and Dubbo, covering ServiceLoader, SpringFactoriesLoader, and Dubbo's ExtensionLoader, with detailed demos, core implementation details, advantages, drawbacks, and typical usage scenarios for each framework.
BackendDubboExtensionLoader
0 likes · 18 min read

This article explains Java’s Service Provider Interface (SPI) mechanism, compares it with traditional APIs, demonstrates how to define interfaces, implement services, and discover them using ServiceLoader, and shows real‑world applications such as Spring Boot auto‑configuration and logging frameworks like SLF4J.
Auto-configurationJavaSLF4J
0 likes · 13 min read

This article explains the Java Service Provider Interface (SPI) concept, demonstrates how to implement and test SPI with ServiceLoader, compares its limitations, and shows how Spring extends SPI using spring.factories for more flexible and efficient service loading.
JavaSPIServiceLoader
0 likes · 6 min read

This article explains Java's Service Provider Interface (SPI) mechanism, demonstrates how to define, implement, and discover services with code examples—including a smart‑home air‑conditioner scenario—and shows its practical use in Spring Boot auto‑configuration and logging frameworks like SLF4J.
Auto-configurationSPIServiceLoader
0 likes · 14 min read

This article explains the Java SPI mechanism, demonstrates how to create service interfaces and implementations, shows how to configure META-INF/services and spring.factories files, and compares Java's built‑in SPI with Spring's optimized SPI approach, providing complete code samples and analysis.
BackendJavaSPI
0 likes · 7 min read

Java SPI is a lightweight plug‑in mechanism that decouples service contracts from implementations using a META‑INF/services configuration file and the ServiceLoader class, enabling dynamic loading of providers as demonstrated with simple examples and applied in frameworks such as JDBC, Spring Boot, Apache Commons Logging, and Dubbo.
DubboFrameworksJDBC
0 likes · 33 min read

This article explains the Java Service Provider Interface (SPI) mechanism, its core principles of decoupling and dynamic loading, walks through the ServiceLoader source code, and demonstrates how to apply SPI in both web and Android projects with Gradle configurations and sample modules.
AndroidBackendGradle
0 likes · 17 min read

This article explains the concept and usage of Service Provider Interface (SPI) in Java, demonstrating how JDK’s ServiceLoader, Dubbo’s enhanced SPI, and Spring’s SPI mechanisms enable flexible extension of logging frameworks and other components, while comparing their features, configuration files, and limitations.
DubboJavaSPI
0 likes · 14 min read

This article explains Java's Service Provider Interface (SPI) mechanism, its purpose, advantages, limitations, differences from APIs, and provides detailed code examples and real-world use cases such as JDBC, ShardingSphere, Spring, and SLF4J to illustrate how SPI enables pluggable, decoupled backend development.
BackendJavaSPI
0 likes · 9 min read

This article explains the design goals and conventions of Java's Service Provider Interface (SPI), demonstrates a practical JDK SPI example with a Command interface, discusses its drawbacks, and shows how Dubbo extends and customizes SPI for protocol implementations.
BackendDubboJava
0 likes · 8 min read

This article explains the concepts of microkernel architecture, why it improves extensibility, its component structure of core system and plugins, and demonstrates how Java's JDK SPI mechanism implements a plug‑in model with detailed code examples and analysis of its use in JDBC drivers.
BackendJDK SPIJava
0 likes · 13 min read

This article explains the difference between APIs and Java SPI, describes how SPI enables plug‑in development through ServiceLoader, and illustrates its practical use with JDBC driver loading and Flink table factories, providing code snippets and implementation steps for backend developers.
APIFlinkJDBC
0 likes · 12 min read

WMRouter is an open‑source Android routing framework, originating from Meituan Waimai, that provides flexible URI dispatch and a ServiceLoader inspired by Java SPI, enabling component‑based navigation, dynamic registration, interceptors, singleton management, and decoupled communication for hybrid, multi‑module, and instrumented app architectures.
AndroidComponentizationRouting
0 likes · 21 min read

This article walks through creating a generic song‑parsing framework using Java's Service Provider Interface (SPI), showing the evolution from a hard‑coded parser to a modular, plug‑in architecture that supports adding new formats like MP3, MP4, and RMVB without changing core code.
Framework DesignJavaPlugin Architecture
0 likes · 15 min read
