Class Router<InputType>
java.lang.Object
org.chenile.owiz.impl.CommandBase<InputType>
org.chenile.owiz.impl.Router<InputType>
- All Implemented Interfaces:
AttachableCommand<InputType>, BypassableCommand<InputType>, Command<InputType>, OrchestrationAware<InputType>
- Direct Known Subclasses:
EvaluateRouter, OgnlRouter, TenantRouter
public abstract class Router<InputType>
extends CommandBase<InputType>
implements Command<InputType>, AttachableCommand<InputType>
A router is a command that executes one of several commands based on a routing string.
The computation of the routing string is left to a sub class and hence this is an abstract class.
- Author:
- Raja Shankar Kolluru
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Map<String, CommandDescriptor<InputType>> static final Stringprotected CommandDescriptor<InputType> static final StringFields inherited from class CommandBase
commandDescriptor, orchConfigurator -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidattachCommand(AttachmentDescriptor<InputType> attachmentDescriptor, CommandDescriptor<InputType> command) protected abstract StringcomputeRoutingString(InputType context) voidMethods inherited from class CommandBase
bypass, execute, getConfigValue, getId, getParentId, obtainCommand, postprocess, preprocess, setCommandDescriptor, setOrchConfigurator
-
Field Details
-
ROUTE
- See Also:
-
DEFAULT
- See Also:
-
commandsMap
-
defaultCommandDescriptor
-
-
Constructor Details
-
Router
public Router()
-
-
Method Details
-
attachCommand
public void attachCommand(AttachmentDescriptor<InputType> attachmentDescriptor, CommandDescriptor<InputType> command) - Specified by:
attachCommandin interfaceAttachableCommand<InputType>
-
doExecute
-
computeRoutingString
-