this.conditionalMessageProcessors = conditionalMessageProcessors;
}
public Object getObject() throws Exception
{
final AbstractSelectiveRouter router = newAbstractSelectiveRouter();
router.setAnnotations(getAnnotations());
router.setDefaultRoute(defaultProcessor);
for (final MessageProcessorFilterPair mpfp : conditionalMessageProcessors)
{
router.addRoute(mpfp.getMessageProcessor(), mpfp.getFilter());
}
return router;
}