org.mule.routing
Class ChoiceRouter
java.lang.Object
org.mule.routing.AbstractSelectiveRouter
org.mule.routing.ChoiceRouter
- All Implemented Interfaces:
- AnnotatedObject, FlowConstructAware, MuleContextAware, Disposable, Initialisable, Lifecycle, Startable, Stoppable, 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
.
Methods inherited from class org.mule.routing.AbstractSelectiveRouter |
addRoute, dispose, getAnnotation, getAnnotations, getConditionalMessageProcessors, getRouterStatistics, initialise, process, removeRoute, setAnnotations, setDefaultRoute, setFlowConstruct, setMuleContext, setRouterStatistics, start, stop, toString, updateRoute |
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-2012 MuleSoft, Inc.. All Rights Reserved.