org.mule.routing
Class ChoiceRouter

java.lang.Object
  extended by org.mule.routing.AbstractSelectiveRouter
      extended by 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.


Field Summary
 
Fields inherited from interface org.mule.api.lifecycle.Initialisable
PHASE_NAME
 
Fields inherited from interface org.mule.api.lifecycle.Startable
PHASE_NAME
 
Fields inherited from interface org.mule.api.lifecycle.Stoppable
PHASE_NAME
 
Fields inherited from interface org.mule.api.lifecycle.Disposable
PHASE_NAME
 
Fields inherited from interface org.mule.api.AnnotatedObject
PROPERTY_NAME
 
Constructor Summary
ChoiceRouter()
           
 
Method Summary
protected  Collection<MessageProcessor> selectProcessors(MuleEvent event)
           
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ChoiceRouter

public ChoiceRouter()
Method Detail

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.