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>

public class OgnlRouter<InputType> extends Router<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