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;
}
Aggregations