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 | 29 | 30 |
Tags
- Python
- $event.target.value
- IPv6
- camel case error
- data
- maven
- vuejs
- builder pattern
- zen of python
- java
- v-show vs v-if
- click.native
- mount point
- Factory Method Pattern
- v-model vs v-bind
- prototype pattern
- design pattern
- MVVM
- kebab case
- Spring Boot
- executable jar
- Singleton pattern
- ubuntu
- Linux
Archives
- Today
- Total
목록Factory Method Pattern (1)
Eddie's Blog
[design pattern] Factory Method Pattern
유형: 생성자 패턴 생성할 대상의 객체(Product의 구현체)와 그것의 생성을 위임하는 Factory를 모두 추상화하고, 대상 객체의 구현 객체는 Factory의 하위 클래스인 Factory 구현체에서 결정하도록 한다. 대상의 생성과 작동을 모두 추상화하고 Factory에 위임하여 사용자는 대상의 구현체(eg. Car, Computer)에 대해 신경 쓰지 않고 Factory로 부터 대상의 작동을 보장받는다. 필요한 적절한 Factory 구현체만을 사용하여 loose-coupling에 도달할 수 있다. // factories public abstract class AbstractProductFactory { protected Product product; public AbstractProductFacto..
programmings
2019. 3. 28. 20:02