Search in sources :

Example 1 with AbstractSelectiveRouter

use of org.mule.runtime.core.internal.routing.AbstractSelectiveRouter in project mule by mulesoft.

the class AbstractSelectiveRouterObjectFactory method doGetObject.

@Override
public AbstractSelectiveRouter doGetObject() throws Exception {
    final AbstractSelectiveRouter router = newAbstractSelectiveRouter();
    router.setAnnotations(getAnnotations());
    router.setDefaultRoute(defaultProcessor);
    router.setMuleContext(muleContext);
    for (final MessageProcessorExpressionPair mpfp : conditionalMessageProcessors) {
        router.addRoute(mpfp.getExpression(), mpfp.getMessageProcessor());
    }
    return router;
}
Also used : AbstractSelectiveRouter(org.mule.runtime.core.internal.routing.AbstractSelectiveRouter) MessageProcessorExpressionPair(org.mule.runtime.core.internal.routing.MessageProcessorExpressionPair)

Aggregations

AbstractSelectiveRouter (org.mule.runtime.core.internal.routing.AbstractSelectiveRouter)1 MessageProcessorExpressionPair (org.mule.runtime.core.internal.routing.MessageProcessorExpressionPair)1