Tag

Service Locator

0 views collected around this technical thread.

Code Ape Tech Column
Code Ape Tech Column
Dec 25, 2024 · Fundamentals

Applying the Service Locator Pattern for Extensible File Parsers in Spring

This article demonstrates how to replace tightly‑coupled if‑else or switch‑case logic with the Service Locator Pattern in a Spring application, allowing new file‑type parsers such as XML to be added without modifying client code, thereby adhering to the Open/Closed principle.

Design PatternFactory BeanJava
0 likes · 7 min read
Applying the Service Locator Pattern for Extensible File Parsers in Spring
Code Ape Tech Column
Code Ape Tech Column
Jun 24, 2024 · Backend Development

Applying the Service Locator Pattern in Spring to Decouple File Parsers

The article explains how to replace tightly‑coupled if‑else or switch statements for selecting CSV, JSON, or XML parsers with a Service Locator Pattern in Spring, showing step‑by‑step code examples, configuration, and the resulting adherence to the open‑closed principle.

Design PatternFactory BeanJava
0 likes · 8 min read
Applying the Service Locator Pattern in Spring to Decouple File Parsers
Code Ape Tech Column
Code Ape Tech Column
Jun 30, 2023 · Backend Development

Applying the Service Locator Pattern to Decouple File Parsers in Spring

This article demonstrates how to replace tightly‑coupled if‑else or switch‑case parser selection with the Service Locator Pattern in a Spring Java application, enabling easy addition of new file‑type parsers without modifying client code and adhering to the open‑closed principle.

DecouplingDesign PatternJava
0 likes · 8 min read
Applying the Service Locator Pattern to Decouple File Parsers in Spring
Code Ape Tech Column
Code Ape Tech Column
Jan 31, 2023 · Backend Development

Applying the Service Locator Pattern to Decouple File Parsers in Java

This article explains how to replace tightly‑coupled if‑else or switch‑case logic for selecting file parsers (JSON, CSV, XML) with a Service Locator Pattern using Spring's ServiceLocatorFactoryBean, demonstrating a clean, extensible solution that follows the Open/Closed principle.

Design PatternJavaService Locator
0 likes · 8 min read
Applying the Service Locator Pattern to Decouple File Parsers in Java