From owner-cvs-all@FreeBSD.ORG Mon Oct 17 17:58:21 2005 Return-Path: X-Original-To: cvs-all@FreeBSD.org Delivered-To: cvs-all@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CC29016A41F; Mon, 17 Oct 2005 17:58:21 +0000 (GMT) (envelope-from hq@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 964F443D49; Mon, 17 Oct 2005 17:58:21 +0000 (GMT) (envelope-from hq@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id j9HHwLC2093505; Mon, 17 Oct 2005 17:58:21 GMT (envelope-from hq@repoman.freebsd.org) Received: (from hq@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id j9HHwLR4093504; Mon, 17 Oct 2005 17:58:21 GMT (envelope-from hq) Message-Id: <200510171758.j9HHwLR4093504@repoman.freebsd.org> From: Herve Quiroz Date: Mon, 17 Oct 2005 17:58:21 +0000 (UTC) To: ports-committers@FreeBSD.org, cvs-ports@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: ports/devel Makefile ports/devel/jakarta-commons-chain Makefile distinfo pkg-descr X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Oct 2005 17:58:22 -0000 hq 2005-10-17 17:58:21 UTC FreeBSD ports repository Modified files: devel Makefile Added files: devel/jakarta-commons-chain Makefile distinfo pkg-descr Log: Jakarta Commons Chain of Responsiblity library. The Chain API models a computation as a series of "commands" that can be combined into a "chain". The API for a command consists of a single method (execute()), which is passed a "context" parameter containing the dynamic state of the computation, and whose return value is a boolean that determines whether or not processing for the current chain has been completed (true), or whether processing should be delegated to the next command in the chain (false). Given that command implementations are designed to conform with these recommendations, it should be feasible to utilize the Chain of Responsibility APIs in the "front controller" of a web application framework (such as Struts), but also be able to use it in the business logic and persistence tiers to model complex computational requirements via composition. In addition, separation of a computation into discrete commands that operate on a general purpose context allows easier creation of commands that are unit testable, because the impact of executing a command can be directly measured by observing the corresponding state changes in the context that is supplied. WWW: http://jakarta.apache.org/commons/chain/ PR: 86800 Submitted by: Adam VanderHook Revision Changes Path 1.1998 +1 -0 ports/devel/Makefile 1.1 +62 -0 ports/devel/jakarta-commons-chain/Makefile (new) 1.1 +2 -0 ports/devel/jakarta-commons-chain/distinfo (new) 1.1 +20 -0 ports/devel/jakarta-commons-chain/pkg-descr (new)