Package org.chenile.owiz.impl
Class CommandBase<InputType>
java.lang.Object
org.chenile.owiz.impl.CommandBase<InputType>
- All Implemented Interfaces:
BypassableCommand<InputType>
,Command<InputType>
,OrchestrationAware<InputType>
- Direct Known Subclasses:
Chain
,DelegatorCommand
,InterpolationCommand
,Router
,SetCommand
,SplitterAggregator
public abstract class CommandBase<InputType>
extends Object
implements Command<InputType>, OrchestrationAware<InputType>, BypassableCommand<InputType>
Base class to implement command functionality. Typically, should get customized for
individual implementations. Inherit this command and over-ride the 'pre' and 'post' process methods.
- Author:
- Raja Shankar Kolluru
-
Field Summary
Modifier and TypeFieldDescriptionprotected CommandDescriptor<InputType>
protected OrchConfigurator<InputType>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
protected abstract void
final void
protected String
getConfigValue
(String name) protected String
getId()
protected String
protected CommandDescriptor<InputType>
obtainCommand
(String key) void
postprocess
(InputType context) void
preprocess
(InputType context) void
setCommandDescriptor
(CommandDescriptor<InputType> commandDescriptor) void
setOrchConfigurator
(OrchConfigurator<InputType> orchConfigurator)
-
Field Details
-
orchConfigurator
-
commandDescriptor
-
-
Constructor Details
-
CommandBase
public CommandBase()
-
-
Method Details
-
setOrchConfigurator
- Specified by:
setOrchConfigurator
in interfaceOrchestrationAware<InputType>
-
setCommandDescriptor
- Specified by:
setCommandDescriptor
in interfaceOrchestrationAware<InputType>
-
bypass
- Specified by:
bypass
in interfaceBypassableCommand<InputType>
-
execute
-
doExecute
- Throws:
Exception
-
preprocess
- Throws:
Exception
-
postprocess
- Throws:
Exception
-
getConfigValue
-
obtainCommand
-
getId
-
getParentId
-