안녕하세요. Chain of Responsibility Scope이 궁금합니다.Chain of Responsibility Score
일반적으로 일반적인 패턴으로 처리기가 있으며 각 처리기는 기능 작동을 관리자에게 전달합니다. 나는 예제 시나리오에서 볼 무엇
은 다음과 같습니다 추상적으로
"Every handler has the responsibility to take an action instead and after that passing
to supervisor.
:
이"Only one related handler is handling the functionality itself and all the other handlers
are just passing through to their supervisor handler."
이 같은 경우에 책임 패턴의 사슬을 위반 하는가
Chain of Responsibility Recommended Scenario:
Handler1(Take No Action) --> Handler2 (Take No Action) --> Handler3(Take All Action)
Chain of Responsibility Wondering Scenario:
Handler1(Take Partial Action) --> Handler2(Take No Action) --> Handler(Take Partial Action)
두 번째 시나리오는 책임의 사슬에 적합한가 아니면 위반하는 것인가?
예를 들어 Netty는 자체적으로 핸들러를 가지며 모든 책임있는 조치를 취하고 그들 사이에 정보도 전달합니다. Netty 핸들러 메커니즘이 책임의 사슬에 어울리다고 말할 수 있습니까?