Skip to content

Commit

Permalink
docs: ch11 System
Browse files Browse the repository at this point in the history
  • Loading branch information
YHLEE9753 committed May 14, 2023
1 parent 79b46b1 commit d86e4d1
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions yonghoon/ch11_시스템.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,14 @@
- 설정 논리는 일반 실행 논리와 분리해야 모듈성이 높아진다

### Main 분리
![img.png](img.png)
![img.png](img/11_1.png)
- 시스템 생성과 시스템 사용을 분리하는 방법
- main 에서 필요한 객체를 생성한 후 애플리케이션에 넘긴다
- 애플리케이션은 main이나 객체가 생성되는 과정을 전혀 모르게되다(의존성 방향)
- 모든 의존성이 main → 애플리케이션

### 팩토리
![img_1.png](img_1.png)
![img_1.png](img/11_2.png)
- 떄로는 객체가 생성되는 시점을 애플리케이션이 결정할 필요도 생긴다.
- 객체 생성 시점을 애플리케이션이 결정할 필요가 있을 때 Abstract Factory 패턴을 사용하여 생성 코드를 감춘다
- OrderingProcessing 애플리케이션은 객체 LineItem이 생성되는 구체적인 방법을 모른다
Expand Down
File renamed without changes
File renamed without changes

0 comments on commit d86e4d1

Please sign in to comment.