Chain of responsibility

Veröffentlicht: vor 3 monaten · Lesedauer ca. 34 Sekunden

Chain of responsibility – Definition

Avoid coupling the sender of a request to its receiver by giving more than one object a chance to handle the request. Chain the receiving objects and pass the request along the chain until an object handles it.

Gang of four (Erich Gamma, Richard Helm, Ralph Johnson, John Vlissides)

Chain of responsibility – Struktur

Chain of responsibility – Code Beispiel

Die Code-Beispiele sind jeweils bei github zu finden.