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
- Google Cloud Platorm
- Cloud Storage
- Google Cloud Platrofm
- container
- Solution Architect Certificate
- Google Cloud Platform
- Solution Architect
- Kubernetes Engine
- AWS
- AWS Certificate
- Cloud Bigtable
- Google Cloud
- AWS Solution Architect
- Cloud Spanner
- Reverse Proxy
- VPC
- Amazon Web Service
- Compute Engine
- Cloud SQL
- AWS Database
- kubernetes
- 아마존웹서비스
- playbook
- 앤서블
- Cloud Datastore
- GKE
- ansible
- gcp
- 리버스 프록시
- AWS 자격증
Archives
- Today
- Total
sungwony
[디자인 패턴] Decorator 패턴 본문
Decorator Pattern
장식 패턴(Decorator Pattern)이란 무엇입니까?
- 주어진 상황 및 용도에 따라 어떤 객체에 책임을 덧붙이는 패턴
- 기능 확장이 필요할 때 서브클래싱 대신 쓸 수 있는 유연한 대안이 될 수 있다
Decotrator Pattern 클래스 다이어그램 예시
Advanced
* 투과적인 인터페이스(API)
* 내용물을 바꾸지 않고 기능을 추가한다.
* 동적인 기능을 추가한다
* 단순한 장식이라도 다양한 기능을 추가할 수 있다.
(참고 : http://gdtbgl93.tistory.com/9)
* java.io 패키지와 Decorator 패턴
* 작은 클래스가 증가한다.
'development > 디자인패턴' 카테고리의 다른 글
[디자인패턴] Chain of responsibility 패턴 (0) | 2018.08.14 |
---|---|
[디자인 패턴] Visitor 패턴 (0) | 2018.08.13 |
[디자인패턴] Template method 패턴 (0) | 2018.07.23 |
[디자인패턴] 디자인패턴 입문 - 디자인패턴 (0) | 2018.07.18 |
[디자인패턴]디자인 패턴 인덱스 (0) | 2018.07.17 |