Tagged articles
5 articles
Page 1 of 1
Baidu Geek Talk
Baidu Geek Talk
Sep 2, 2022 · Fundamentals

Understanding Factory Patterns: Simple Factory, Factory Method, and Abstract Factory with Code Samples

The article explains the Factory design pattern’s three main variants—Simple Factory for limited product types, Factory Method for extensible hierarchies, and Abstract Factory for creating families of related objects—illustrated with Java code examples for document parsing, automated testing, and cross‑platform membership systems.

Abstract FactoryDesign PatternsFactory Method
0 likes · 11 min read
Understanding Factory Patterns: Simple Factory, Factory Method, and Abstract Factory with Code Samples
Mike Chen's Internet Architecture
Mike Chen's Internet Architecture
Mar 2, 2022 · Fundamentals

Mastering Java’s Simple Factory Pattern: Definition, Structure, and Pros & Cons

This article explains Java's Simple Factory design pattern, covering its definition, class structure, implementation steps with code examples, advantages and disadvantages, and suitable application scenarios, helping developers understand when and how to use this creational pattern effectively.

CreationalSimple FactorySoftware Architecture
0 likes · 7 min read
Mastering Java’s Simple Factory Pattern: Definition, Structure, and Pros & Cons
Senior Brother's Insights
Senior Brother's Insights
Jul 18, 2021 · Backend Development

How Nacos Client Implements the Simple Factory Pattern

This article explains the simple factory pattern, compares its standard definition with Nacos's implementation, and walks through concrete Java examples showing how NacosFactory, NamingFactory, and related services create instances in the Nacos client.

BackendDesign PatternsFactory Method
0 likes · 9 min read
How Nacos Client Implements the Simple Factory Pattern
Alibaba Cloud Developer
Alibaba Cloud Developer
Jul 5, 2021 · Fundamentals

Mastering Factory Patterns: Simple, Factory Method & Abstract Factory Explained

This article revisits the core creational patterns—Simple Factory, Factory Method, and Abstract Factory—explaining their motivations, role divisions, basic concepts, detailed implementations with Java code, and comparative insights to help developers choose the right pattern for scalable object creation.

Abstract FactoryFactory MethodFactory Pattern
0 likes · 20 min read
Mastering Factory Patterns: Simple, Factory Method & Abstract Factory Explained