From a2f3d587091fcdb7b954c22ec1d7f5e30f224a60 Mon Sep 17 00:00:00 2001 From: Ilkka Seppala Date: Sat, 3 Oct 2015 20:19:01 +0300 Subject: [PATCH] Improve Chain Javadoc --- chain/src/main/java/com/iluwatar/chain/App.java | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/chain/src/main/java/com/iluwatar/chain/App.java b/chain/src/main/java/com/iluwatar/chain/App.java index 5f98b2478..4d3ca69db 100644 --- a/chain/src/main/java/com/iluwatar/chain/App.java +++ b/chain/src/main/java/com/iluwatar/chain/App.java @@ -2,10 +2,16 @@ package com.iluwatar.chain; /** * - * Chain of Responsibility organizes request handlers ({@link RequestHandler}) into a - * chain where each handler has a chance to act on the request on its turn. In - * this example the king ({@link OrcKing}) makes requests and the military orcs - * ({@link OrcCommander}, {@link OrcOfficer}, {@link OrcSoldier}) form the handler chain. + * The Chain of Responsibility pattern is a design pattern consisting of command + * objects and a series of processing objects. Each processing object contains + * logic that defines the types of command objects that it can handle; the rest are + * passed to the next processing object in the chain. A mechanism also exists for + * adding new processing objects to the end of this chain. + *

+ * In this example we organize the request handlers ({@link RequestHandler}) into a + * chain where each handler has a chance to act on the request on its turn. Here + * the king ({@link OrcKing}) makes requests and the military orcs ({@link OrcCommander}, + * {@link OrcOfficer}, {@link OrcSoldier}) form the handler chain. * */ public class App {