Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
Tags
- VPC
- container
- Cloud Bigtable
- 아마존웹서비스
- AWS
- Solution Architect Certificate
- Compute Engine
- AWS 자격증
- ansible
- Google Cloud Platorm
- GKE
- Amazon Web Service
- kubernetes
- AWS Solution Architect
- Google Cloud Platrofm
- Solution Architect
- Reverse Proxy
- playbook
- Cloud SQL
- Cloud Spanner
- AWS Database
- Cloud Storage
- gcp
- Google Cloud
- 앤서블
- Google Cloud Platform
- Cloud Datastore
- Kubernetes Engine
- AWS Certificate
- 리버스 프록시
Archives
- Today
- Total
sungwony
[디자인 패턴] Visitor 패턴 본문
Visitor Pattern
방문자 패턴(Visitor Pattern)이란 무엇입니까?
- 방문자 패턴에서는 데이터의 구조와 처리를 분리합니다. 데이터 구조 안을 돌아다니는 주체인 '방문자'를 별도의 클래스로 준비해서 그 클래스에게 처리를 위임합니다.
Visitor Pattern의 클래스 다이어그램 예시
Advanced
* 더블 디스패치(double dispatch)
* 처리를 데이터 구조에서 분리
* OCP(Open-closed Principle)
* ConcreteVisitor 역할의 추가는 간단하다
* ConcreteElement 역할의 추가는 곤란하다
'development > 디자인패턴' 카테고리의 다른 글
[디자인패턴] Chain of responsibility 패턴 (0) | 2018.08.14 |
---|---|
[디자인 패턴] Decorator 패턴 (0) | 2018.08.10 |
[디자인패턴] Template method 패턴 (0) | 2018.07.23 |
[디자인패턴] 디자인패턴 입문 - 디자인패턴 (0) | 2018.07.18 |
[디자인패턴]디자인 패턴 인덱스 (0) | 2018.07.17 |