public abstract class AbstractDefaultChainCommand<T> extends Object implements ChainCommand<T>
executeAsChain
for all executions of the command
or
commandContainer
.Constructor and Description |
---|
AbstractDefaultChainCommand() |
Modifier and Type | Method and Description |
---|---|
abstract void |
execute(T context)
Executes the command.
|
boolean |
executeAsChain(T context)
Executes a command as a chain.
|
CommandTransitionEnum.CommandTransition |
executeCommand(T parameterObject)
Executes the command.
|
CommandTransitionEnum.CommandTransition |
executeCommandAsChain(T parameterObject) |
public abstract void execute(T context) throws CommandException
Command
execute
in interface Command<T>
context
- The parameter object to pass.CommandException
- if something happens.Command.execute(java.lang.Object)
public boolean executeAsChain(T context)
ChainCommand
execute
method.executeAsChain
in interface ChainCommand<T>
context
- The parameter object to passChainCommand.executeAsChain(java.lang.Object)
public CommandTransitionEnum.CommandTransition executeCommand(T parameterObject)
Command
executeCommand
in interface Command<T>
parameterObject
- The parameter object to pass.Command.executeCommand(java.lang.Object)
public CommandTransitionEnum.CommandTransition executeCommandAsChain(T parameterObject)
executeCommandAsChain
in interface ChainCommand<T>
parameterObject
- The parameter object to pass.ChainCommand.executeCommandAsChain(java.lang.Object)
Copyright © 2017 neusta software development GmbH. All rights reserved.