Class OgnlRouter<InputType>
java.lang.Object
org.chenile.owiz.impl.CommandBase<InputType>
org.chenile.owiz.impl.Router<InputType>
org.chenile.owiz.impl.ognl.OgnlRouter<InputType>
- Type Parameters:
InputType- .
- All Implemented Interfaces:
AttachableCommand<InputType>, BypassableCommand<InputType>, Command<InputType>, OrchestrationAware<InputType>
Avoids creation of multiple routers by allowing an expression that can be utilized on the
context to obtain the route.
Sample: <router id='xxx' componentName='yyy' expression='a.b'> --- </router>
In the above example, context.getA().getB() would be evaluated to obtain the route. The object obtained from the evaluation is then converted to a string and returned as a routing string which is then used to compute the correct command that can be used.
- Author:
- Raja Shankar Kolluru
-
Field Summary
FieldsFields inherited from class Router
commandsMap, DEFAULT, defaultCommandDescriptor, ROUTEFields inherited from class CommandBase
commandDescriptor, orchConfigurator -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class Router
attachCommand, doExecuteMethods inherited from class CommandBase
bypass, execute, getConfigValue, getId, getParentId, obtainCommand, postprocess, preprocess, setCommandDescriptor, setOrchConfigurator
-
Field Details
-
EXPRESSION
- See Also:
-
-
Constructor Details
-
OgnlRouter
public OgnlRouter()
-
-
Method Details
-
computeRoutingString
-