Chain of Responsibility: split merged handlers, add missing Level3/Critical classes, Java 25, H6 labels, README mapping
This commit is contained in:
17
README.md
17
README.md
@@ -305,6 +305,23 @@ javac 02-structural/proxy/*.java -d out/proxy
|
||||
java -cp out/proxy proxy.Main
|
||||
```
|
||||
|
||||
### Chain of Responsibility (`03-behavioral/chain-of-responsibility/`)
|
||||
|
||||
| Post Section | File(s) |
|
||||
|---|---|
|
||||
| The Problem: Rigid Routing Logic | illustrative only — not part of this repository's runnable example |
|
||||
| Implementation: Support Ticket Escalation — base handler | `SupportHandler.java` |
|
||||
| Implementation: Support Ticket Escalation — the ticket | `SupportTicket.java` |
|
||||
| Each concrete handler checks only its own responsibility — Level 1 & 2 | `Level1Support.java`, `Level2Support.java` |
|
||||
| Level3Support and CriticalIncidentTeam follow exactly the same shape | `Level3Support.java`, `CriticalIncidentTeam.java` |
|
||||
| The chain is assembled in one place | `Main.java` |
|
||||
|
||||
Run it:
|
||||
```bash
|
||||
javac 03-behavioral/chain-of-responsibility/*.java -d out/chain
|
||||
java -cp out/chain chain.Main
|
||||
```
|
||||
|
||||
## Reference
|
||||
|
||||
- *Design Patterns: Elements of Reusable Object-Oriented Software* — Gamma, Helm, Johnson, Vlissides
|
||||
|
||||
Reference in New Issue
Block a user