Package org.chenile.owiz.impl.ognl
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
Fields inherited from class org.chenile.owiz.impl.Router
commandsMap, DEFAULT, defaultCommandDescriptor, ROUTE
Fields inherited from class org.chenile.owiz.impl.CommandBase
commandDescriptor, orchConfigurator
-
Constructor Summary
-
Method Summary
Methods inherited from class org.chenile.owiz.impl.Router
attachCommand, doExecute
Methods inherited from class org.chenile.owiz.impl.CommandBase
bypass, execute, getConfigValue, getId, getParentId, obtainCommand, postprocess, preprocess, setCommandDescriptor, setOrchConfigurator
-
Field Details
-
EXPRESSION
- See Also:
-
-
Constructor Details
-
OgnlRouter
public OgnlRouter()
-
-
Method Details
-
computeRoutingString
- Specified by:
computeRoutingString
in classRouter<InputType>
- Throws:
Exception
-