일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
29 | 30 | 31 |
Tags
- java
- IntelliJ
- Git
- Spring
- springboot
- Web Server
- php
- jsp
- Spring Boot
- AWS
- MySQL
- docker
- Gradle
- ubuntu
- it
- db
- JPA
- Design Patterns
- 요리
- Oracle
- redis
- laravel
- javascript
- 맛집
- ReactJS
- jenkins
- devops
- elasticsearch
- linux
- tool
Archives
- Today
- Total
목록2019/12/28 (1)
아무거나
[Design Pattern] Decorator Pattern
데코레이터 패턴(Decorator Pattern) 동적으로 책임 추가가 필요할 때 사용한다. Component: 실질적인 인스턴스를 컨트롤하는 역할 즉, decorator와 Component를을 컨트롤 하는 역할이다. (method 부분이 책임 부분) ConcreteComponent: Component의 실질적인 인스턴스의 부분이며, 책임의 주체의 역할 즉, Component가 컨트롤하는 객체 Decorator: Component와 concrete decorator를 동일시 하도록 해주는 역할 즉, Decorator은 Component가 될 수 있고, Component들을 가지고 있는 모양세를 가지고 있다고 생각하면 된다. ConcreteDecorator: 실질적인 장식 인스턴스 및 정의이며 추가된 책임..
Java/Java
2019. 12. 28. 21:04