Package org.apache.commons.chain


package org.apache.commons.chain

The fundamental API contracts for the Chain of Responsibilty Pattern as implemented in this package. See org.apache.commons.chain.impl for convenient base implementations of Chain and Context, and see org.apache.commons.chain.web for specialized Context implementations suitable for use in web applications.

  • Class
    Description
    A Catalog is a collection of named Commands (or Chains) that can be used to retrieve the set of commands that should be performed based on a symbolic identifier.
    A CatalogFactory is a class used to store and retrieve Catalogs.
    A Chain represents a configured list of Commands that will be executed in order to perform processing on a specified Context.
    A Command encapsulates a unit of processing work to be performed, whose purpose is to examine and/or modify the state of a transaction that is represented by a Context.
    A Context represents the state information that is accessed and manipulated by the execution of a Command or a Chain.
    A Filter is a specialized Command that also expects the Chain that is executing it to call the postprocess() method if it called the execute() method.