본문 바로가기
Computer Science

Chain-of-Responsibility Pattern

by OKOK 2021. 7. 30.

Purpose

  • Gives more than one object an opportunity to handle a request by linking receiving objects together.

 

Use When

  • Multiple objects may handle a request and the handler doesn't have to be a specific objects.
  • A set of objects should be able to handle a request with the handler determined at runtime.
  • A request not being handled is an acceptable potential outcome.

'Computer Science' 카테고리의 다른 글

점프투 자바 목차  (0) 2021.08.01
Prototype Pattern  (0) 2021.07.30
Proxy Pattern  (0) 2021.07.30
Design Pattern Study  (0) 2021.07.29
Facade pattern  (0) 2021.07.29

댓글