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
id
Fields inherited from interface org.apache.commons.chain.Command
CONTINUE_PROCESSING, PROCESSING_COMPLETE
-
Constructor Summary
ConstructorDescriptionConstruct 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:
execute
in interfaceCommand<Context>
- Overrides:
execute
in classNonDelegatingCommand
- Parameters:
context
- TheContext
to be processed by thisCommand
- Returns:
true
if the processing of thisContext
has been completed, orfalse
if the processing of thisContext
should be delegated to a subsequentCommand
in an enclosingChain
- Throws:
Exception
- general purpose exception return to indicate abnormal terminationIllegalArgumentException
- ifcontext
isnull
-