Tagged articles

Simple Factory

6 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
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
Nullbody Notes
Nullbody Notes
Nov 15, 2020 · Fundamentals

Factory Method Pattern in Go: A Foodie's Take on Object Creation

This article walks through implementing Simple Factory and Factory Method patterns in Go, showing how to encapsulate object creation with a Food interface, concrete types, and factory structs, and explains the pointer vs value implementation rules and design‑principle benefits.

Dependency InversionDesign PatternsFactory Method
0 likes · 7 min read
Factory Method Pattern in Go: A Foodie's Take on Object Creation