Package org.apache.commons.chain.impl
Class DelegatingCommand
java.lang.Object
org.apache.commons.chain.impl.NonDelegatingCommand
org.apache.commons.chain.impl.DelegatingCommand
Implementation of
Command that logs its identifier and
and delegates to the rest of the chain.- Version:
- $Revision$ $Date$
- Author:
- Craig R. McClanahan
-
Field Summary
Fields inherited from class org.apache.commons.chain.impl.NonDelegatingCommand
idFields inherited from interface org.apache.commons.chain.Command
CONTINUE_PROCESSING, PROCESSING_COMPLETE -
Constructor Summary
ConstructorsConstructorDescriptionConstruct an instance that will log the specified identifier -
Method Summary
Methods inherited from class org.apache.commons.chain.impl.NonDelegatingCommand
log, setId
-
Constructor Details
-
DelegatingCommand
public DelegatingCommand() -
DelegatingCommand
Construct an instance that will log the specified identifier- Parameters:
id- identifier to log for this Command instance
-
-
Method Details
-
execute
Execution method for this Command- Specified by:
executein interfaceCommand<Context>- Overrides:
executein classNonDelegatingCommand- Parameters:
context- TheContextto be processed by thisCommand- Returns:
trueif the processing of thisContexthas been completed, orfalseif the processing of thisContextshould be delegated to a subsequentCommandin an enclosingChain- Throws:
Exception- general purpose exception return to indicate abnormal terminationIllegalArgumentException- ifcontextisnull
-