Chain of Responsibility Design Pattern (책임연쇄패턴)
k0102575.github.io/articles/2020-02/chain-of-responsibility-pattern
책임 연쇄 패턴(chain-of-responsibility pattern)
연쇄책임패턴 (Chain-of-responsibility pattern)
k0102575.github.io
- 대개 핸들러 한 개와 여러 개의 하위 연산 클래스들이 존재한다.
- 짧게 CoR pattern 이라고 함.
- 어떤 요청이 그 요청을 담당하는 객체에 들어오면 각각의 요청에 대해서 특정한 객체가 담당하는 것이 일반적이지만 객체를 연결리스트와 같은 사슬 방식으로 연결한 후에 요청을 수행하지 못하는 객체라면 다음 객체에 넘기며 책임을 넘기는 형태의 패턴을 말한다. (특정 클래스에서 해결하지 못하면, 넘기고~ 넘기고~)
- 설명이 잘 돼 있다!
refactoring.guru/design-patterns/chain-of-responsibility
Chain of Responsibility
/ Design Patterns / Behavioral Patterns Chain of Responsibility Also known as: CoR, Chain of Command Intent Chain of Responsibility is a behavioral design pattern that lets you pass requests along a chain of handlers. Upon receiving a request, each handle
refactoring.guru
- CoR 패턴을 이용한 사칙연산 프로그램
www.newthinktank.com/2012/10/chain-of-responsibility-design-pattern-tutorial/
Chain of Responsibility Design Pattern Tutorial
Posted by Derek Banas on Oct 20, 2012 in Java Video Tutorial | 11 comments Welcome to my Chain of Responsibility Design Pattern Tutorial! Wow, that was a mouthful! This pattern has a group of objects that are expected to between them be able to solve a
www.newthinktank.com
'공부 > Object-Oriented Design Pattern' 카테고리의 다른 글
[OODP] Strategy Pattern (전략 패턴) (0) | 2021.03.28 |
---|---|
[어댑터 패턴] Class Adaptor vs. Object Adaptor (0) | 2021.03.27 |
중재자 디자인 패턴 (Mediator Design Pattern) (0) | 2021.03.20 |
템플릿 메소드 (Template Method) 란 (0) | 2021.03.20 |
Eclipse에서 UML diagram 그리기 (0) | 2021.03.11 |
댓글