Tag

ServiceLoader

0 views collected around this technical thread.

Top Architect
Top Architect
Apr 17, 2025 · Backend Development

Plugin Architecture in Java: Implementing Modular Extensions with ServiceLoader, Spring Factories, and Custom Configurations

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.

JavaModular DesignPlugin Architecture
0 likes · 23 min read
Plugin Architecture in Java: Implementing Modular Extensions with ServiceLoader, Spring Factories, and Custom Configurations
JD Tech Talk
JD Tech Talk
Mar 7, 2025 · Fundamentals

Understanding Java Service Provider Interface (SPI): Introduction, Example, and Implementation Details

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
Understanding Java Service Provider Interface (SPI): Introduction, Example, and Implementation Details
Top Architect
Top Architect
Dec 17, 2024 · Backend Development

Understanding Plugin Mechanisms in Java and Spring Boot

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
Understanding Plugin Mechanisms in Java and Spring Boot
Code Ape Tech Column
Code Ape Tech Column
Nov 27, 2024 · Backend Development

Java Plugin Development: SPI, ServiceLoader, and Spring Factories in Spring Boot

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.

JavaModularizationPlugin
0 likes · 21 min read
Java Plugin Development: SPI, ServiceLoader, and Spring Factories in Spring Boot
Selected Java Interview Questions
Selected Java Interview Questions
Nov 24, 2024 · Backend Development

Understanding Java SPI and Building a Modular Plugin System with Spring Boot

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.

JavaMavenPlugin
0 likes · 13 min read
Understanding Java SPI and Building a Modular Plugin System with Spring Boot
Architect's Guide
Architect's Guide
Oct 13, 2024 · Backend Development

Understanding Java SPI and Spring SPI: Implementation, Examples, and Source Code Analysis

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.

DependencyInjectionJavaSPI
0 likes · 7 min read
Understanding Java SPI and Spring SPI: Implementation, Examples, and Source Code Analysis
Code Ape Tech Column
Code Ape Tech Column
Jul 24, 2024 · Backend Development

Understanding and Implementing Java SPI and Spring SPI

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.

JavaSPIServiceLoader
0 likes · 7 min read
Understanding and Implementing Java SPI and Spring SPI
Code Ape Tech Column
Code Ape Tech Column
Apr 10, 2024 · Backend Development

Understanding and Comparing Java, Spring, and Dubbo SPI Mechanisms

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.

Backend DevelopmentDubboJava
0 likes · 15 min read
Understanding and Comparing Java, Spring, and Dubbo SPI Mechanisms
Architect's Guide
Architect's Guide
Sep 11, 2023 · Backend Development

Java Plugin Development: SPI, ServiceLoader, Custom Configurations, and Spring Boot Factories

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.

Backend DevelopmentJavaPlugin Architecture
0 likes · 19 min read
Java Plugin Development: SPI, ServiceLoader, Custom Configurations, and Spring Boot Factories
Sohu Tech Products
Sohu Tech Products
Jul 19, 2023 · Backend Development

Plugin Architecture in Java: SPI, ServiceLoader, and Spring Boot Implementations

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.

JavaPluginSPI
0 likes · 18 min read
Plugin Architecture in Java: SPI, ServiceLoader, and Spring Boot Implementations
Top Architect
Top Architect
Jun 18, 2023 · Backend Development

Java Plugin Development: SPI, ServiceLoader, and Spring Boot Integration

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.

JavaPluginSPI
0 likes · 21 min read
Java Plugin Development: SPI, ServiceLoader, and Spring Boot Integration
Code Ape Tech Column
Code Ape Tech Column
Jun 16, 2023 · Backend Development

Java Plugin Development: SPI, Spring Factories, and Custom Extension Mechanisms

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.

JavaMicroservicesPlugin Architecture
0 likes · 20 min read
Java Plugin Development: SPI, Spring Factories, and Custom Extension Mechanisms
macrozheng
macrozheng
Mar 15, 2023 · Backend Development

Master Java SPI: From Service Provider Interface to Spring Boot Auto‑Configuration

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‑ConfigurationJavaSPI
0 likes · 13 min read
Master Java SPI: From Service Provider Interface to Spring Boot Auto‑Configuration
Selected Java Interview Questions
Selected Java Interview Questions
Mar 13, 2023 · Backend Development

Understanding Java SPI and Spring SPI Mechanisms

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.

Backend DevelopmentJavaSPI
0 likes · 6 min read
Understanding Java SPI and Spring SPI Mechanisms
Sanyou's Java Diary
Sanyou's Java Diary
Feb 23, 2023 · Backend Development

Unlocking Java’s SPI: How Service Provider Interface Powers Spring Boot Auto‑Configuration

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‑ConfigurationJavaSPI
0 likes · 14 min read
Unlocking Java’s SPI: How Service Provider Interface Powers Spring Boot Auto‑Configuration
Code Ape Tech Column
Code Ape Tech Column
Jan 30, 2023 · Fundamentals

Understanding and Implementing Java SPI (Service Provider Interface) with Examples

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.

JavaSPIServiceLoader
0 likes · 7 min read
Understanding and Implementing Java SPI (Service Provider Interface) with Examples
vivo Internet Technology
vivo Internet Technology
Nov 2, 2022 · Backend Development

Understanding Java SPI: Principles, Implementation, and Applications

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
Understanding Java SPI: Principles, Implementation, and Applications
Code Ape Tech Column
Code Ape Tech Column
May 6, 2022 · Backend Development

Understanding Java Service Provider Interface (SPI) and Its Applications

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.

JavaSPIServiceLoader
0 likes · 9 min read
Understanding Java Service Provider Interface (SPI) and Its Applications
Selected Java Interview Questions
Selected Java Interview Questions
Jul 2, 2021 · Backend Development

Understanding Java SPI Mechanism and Its Application in Dubbo

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.

DubboJavaSPI
0 likes · 8 min read
Understanding Java SPI Mechanism and Its Application in Dubbo