Caution: In this restricted "Fossies" environment the current HTML page may not be correctly presentated and may have some non-functional links.
You can here alternatively try to browse the pure source code or just view or download the uninterpreted raw source code. If the rendering is insufficient you may try to find and view the page on the project site itself.
A service which can assemble an implementation based on a command interface, and an ordered list of objects
implementing that interface (the "commands"). This is an implementation of the Gang of Four Chain Of Command
For each method in the interface, the chain implementation will call the corresponding method on each command object
in turn (with the order defined by the list). If any of the command objects return true, then the chain of command
stops and the initial method invocation returns true. Otherwise, the chain of command continues to the next command
(and will return false if none of the commands returns true).
For methods whose return type is not boolean, the chain stops with the first non-null (for object types), or non-zero
(for numeric types). The chain returns the value that was returned by the command. If the method return type is void,
all commands will be invoked.
Method invocations will also be terminated if an exception is thrown.