org.mule.routing
Class ChoiceRouter
java.lang.Object
org.mule.routing.AbstractSelectiveRouter
org.mule.routing.ChoiceRouter
- All Implemented Interfaces:
- MessageProcessor, RouterStatisticsRecorder, SelectiveRouter
public class ChoiceRouter
- extends AbstractSelectiveRouter
Routes the event to a singleMessageProcessor using a Filter
to evaluate the event being processed and find the first route that can be used.
If a default route has been configured and no match has been found, the default
route will be used. Otherwise it throws a RoutePathNotFoundException.
ChoiceRouter
public ChoiceRouter()
selectProcessors
protected Collection<MessageProcessor> selectProcessors(MuleEvent event)
- Specified by:
selectProcessors in class AbstractSelectiveRouter
- Returns:
- the processors selected according to the specific router strategy or
an empty collection (not null).
Copyright © 2003-2010 MuleSoft, Inc.. All Rights Reserved.