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
FieldsModifier and TypeFieldDescriptionprotected CommandDescriptor<InputType>protected OrchConfigurator<InputType> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanprotected abstract voidfinal voidprotected StringgetConfigValue(String name) protected StringgetId()protected Stringprotected CommandDescriptor<InputType>obtainCommand(String key) voidpostprocess(InputType context) voidpreprocess(InputType context) voidsetCommandDescriptor(CommandDescriptor<InputType> commandDescriptor) voidsetOrchConfigurator(OrchConfigurator<InputType> orchConfigurator)
-
Field Details
-
orchConfigurator
-
commandDescriptor
-
-
Constructor Details
-
CommandBase
public CommandBase()
-
-
Method Details
-
setOrchConfigurator
- Specified by:
setOrchConfiguratorin interfaceOrchestrationAware<InputType>
-
setCommandDescriptor
- Specified by:
setCommandDescriptorin interfaceOrchestrationAware<InputType>
-
bypass
- Specified by:
bypassin interfaceBypassableCommand<InputType>
-
execute
-
doExecute
- Throws:
Exception
-
preprocess
- Throws:
Exception
-
postprocess
- Throws:
Exception
-
getConfigValue
-
obtainCommand
-
getId
-
getParentId
-