Java org.apache.commons.chain Chain fields, constructors, methods, implement or subclass

Example usage for Java org.apache.commons.chain Chain fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.apache.commons.chain Chain.

The text is from its open source code.

Implementation

org.apache.commons.chain.Chain has the following implementations.
Click this link to see all its implementation.

Method

booleanexecute(Context context)

Execute the processing represented by this Chain according to the following algorithm.

  • If there are no configured Command s in the Chain , return false.
  • Call the execute() method of each Command configured on this chain, in the order they were added via calls to the addCommand() method, until the end of the configured Command s is encountered, or until one of the executed Command s returns true or throws an exception.
  • Walk backwards through the Command s whose execute() methods, starting with the last one that was executed.