commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From commons-...@jakarta.apache.org
Subject [Jakarta Commons Wiki] Updated: CommonsChain
Date Fri, 26 Nov 2004 06:36:34 GMT
   Date: 2004-11-25T22:36:34
   Editor: MatthewSgarlata <matthew.sgarlata@verizon.net>
   Wiki: Jakarta Commons Wiki
   Page: CommonsChain
   URL: http://wiki.apache.org/jakarta-commons/CommonsChain

   no comment

Change Log:

------------------------------------------------------------------------------
@@ -1,7 +1,11 @@
 ##language:en
 = chain Overview =
 
-|| http://jakarta.apache.org/commons/chain/images/chain-logo-white.png || [http://jakarta.apache.org/commons/chain/
Commons-chain] (add chain discription).[[BR]] A lot of information is available on the [http://jakarta.apache.org/commons/chain/
chain website]. If you don't find the information you need you can always contact us using
one of the [http://jakarta.apache.org/site/mail2.html#Commons mailing lists]. ||
+|| http://jakarta.apache.org/commons/chain/images/chain-logo-white.png || [http://jakarta.apache.org/commons/chain/
Commons-chain] A popular technique for organizing the execution of complex processing flows
is the "Chain of Responsibility" pattern, as described (among many other places) in the classic
"Gang of Four" design patterns book. Although the fundamental API contracts required to implement
this design patten are extremely simple, it is useful to have a base API that facilitates
using the pattern, and (more importantly) encouraging composition of command implementations
from multiple diverse sources.
+
+Towards that end, 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).
+
+[[BR]] A lot of information is available on the [http://jakarta.apache.org/commons/chain/
chain website]. If you don't find the information you need you can always contact us using
one of the [http://jakarta.apache.org/site/mail2.html#Commons mailing lists]. ||
 
 = External Resources =
 

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message