Edit Package apache-commons-chain

An implementation of the GoF Chain of Responsibility pattern


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 pattern 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).

  • Download package
  • osc -A https://api.opensuse.org checkout openSUSE:Backports:SLE-15-SP3/apache-commons-chain && cd $_
  • Create Badge
Source Files
Filename Size Changed
apache-commons-chain-1.2-portlet20.patch 0000002617 2.56 KB over 5 years
apache-commons-chain-1.2-tests-servlet31.patch 0000012057 11.8 KB about 4 years
apache-commons-chain.changes 0000000726 726 Bytes almost 4 years
apache-commons-chain.spec 0000005133 5.01 KB almost 4 years
commons-chain-1.2-getdeps.patch 0000003443 3.36 KB about 4 years
commons-chain-1.2-servlet4.patch 0000001370 1.34 KB about 4 years
commons-chain-1.2-src.tar.gz 0000169394 165 KB over 5 years
Comments 0
openSUSE Build Service is sponsored by