Factory Method Pattern
1. https://bcp0109.tistory.com/367
2. https://refactoring.guru/ko/design-patterns/factory-method
3. https://inpa.tistory.com/entry/GOF-%F0%9F%92%A0-%ED%8C%A9%ED%86%A0%EB%A6%AC-%EB%A9%94%EC%84%9C%EB%93%9CFactory-Method-%ED%8C%A8%ED%84%B4-%EC%A0%9C%EB%8C%80%EB%A1%9C-%EB%B0%B0%EC%9B%8C%EB%B3%B4%EC%9E%90
๐ ํฉํ ๋ฆฌ ๋ฉ์๋(Factory Method) ํจํด - ์๋ฒฝ ๋ง์คํฐํ๊ธฐ
Factory Method Pattern ํฉํ ๋ฆฌ ๋ฉ์๋ ํจํด์ ๊ฐ์ฒด ์์ฑ์ ๊ณต์ฅ(Factory) ํด๋์ค๋ก ์บก์ํ ์ฒ๋ฆฌํ์ฌ ๋์ ์์ฑํ๊ฒ ํ๋ ์์ฑ ๋์์ธ ํจํด์ด๋ค. ์ฆ, ํด๋ผ์ด์ธํธ์์ ์ง์ new ์ฐ์ฐ์๋ฅผ ํตํด ์ ํ ๊ฐ์ฒด๋ฅผ
inpa.tistory.com
ํฉํ ๋ฆฌ ๋ฉ์๋ ํจํด
/ ๋์์ธ ํจํด๋ค / ์์ฑ ํจํด ํฉํ ๋ฆฌ ๋ฉ์๋ ํจํด ๋ค์ ์ด๋ฆ์ผ๋ก๋ ๋ถ๋ฆฝ๋๋ค: ๊ฐ์ ์์ฑ์, Factory Method ์๋ ํฉํ ๋ฆฌ ๋ฉ์๋๋ ๋ถ๋ชจ ํด๋์ค์์ ๊ฐ์ฒด๋ค์ ์์ฑํ ์ ์๋ ์ธํฐํ์ด์ค๋ฅผ ์ ๊ณตํ์ง
refactoring.guru
Factory ํจํด (2/3) - Factory Method (ํฉํ ๋ฆฌ ๋ฉ์๋) ํจํด
1. Overview Factory ํจํด์ ๊ฐ์ฒด ์์ฑ๊ณผ ๊ด๋ จ๋ ๋์์ธ ํจํด์ ๋๋ค. 1ํธ์์ ๋ดค๋ Simple Factory ๋ ๊ฐ์ฒด ์์ฑ ์ญํ ์ ๋ด๋นํ๋ฉด์ ๊ฐ ํด๋ผ์ด์ธํธ์์ ๊ตฌํ ํด๋์ค์ ์ง์ ์์กดํ์ง ์๋๋ก ๋ถ๋ฆฌํ์ต๋๋ค.
bcp0109.tistory.com
'Software Development > SW Architecture' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
SOLID Principle & Component Design Principles (0) | 2024.07.21 |
---|---|
Command Pattern (0) | 2024.07.08 |
Tactics and Patterns for Software Robustness (0) | 2024.06.28 |
CQRS Pattern์ ๋ํ ์์ธํ ์ค๋ช (0) | 2024.06.28 |
Event Driven Architecture (EDA) (0) | 2024.06.28 |