MCPcopy Create free account
hub / github.com/amikey/java-design-patterns / App

Class App

chain/src/main/java/com/iluwatar/chain/App.java:11–22  ·  view source on GitHub ↗

Chain of Responsibility organizes request handlers (RequestHandler) into a chain where each handler has a chance to act on the request on its turn. In this example the king (OrcKing) makes requests and the military orcs (OrcCommander, OrcOfficer, OrcSoldier) form the handler chain.

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected