org.mule.routing
Class DynamicAll

java.lang.Object
  extended by org.mule.routing.DynamicAll
All Implemented Interfaces:
MuleContextAware, Initialisable, MessageProcessor

public class DynamicAll
extends Object
implements MessageProcessor, MuleContextAware, Initialisable

Routes a message through a set of routes that will be obtained dynamically (per message) using a DynamicRouteResolver. The message will be route to all the routes returned by DynamicRouteResolver and then all the results will be aggregated.


Field Summary
 
Fields inherited from interface org.mule.api.lifecycle.Initialisable
PHASE_NAME
 
Constructor Summary
DynamicAll()
           
 
Method Summary
 void initialise()
          Method used to perform any initialisation work.
 MuleEvent process(MuleEvent event)
          Invokes the MessageProcessor.
 void setDynamicRouteResolver(DynamicRouteResolver routeResolver)
           
 void setMuleContext(MuleContext context)
           
 void setResultAggregator(RouterResultsHandler routerResultsHandler)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DynamicAll

public DynamicAll()
Method Detail

initialise

public void initialise()
                throws InitialisationException
Description copied from interface: Initialisable
Method used to perform any initialisation work. If a fatal error occurs during initialisation an InitialisationException should be thrown, causing the Mule instance to shutdown. If the error is recoverable, say by retrying to connect, a RecoverableException should be thrown. There is no guarantee that by throwing a Recoverable exception that the Mule instance will not shut down.

Specified by:
initialise in interface Initialisable
Throws:
InitialisationException - if a fatal error occurs causing the Mule instance to shutdown
RecoverableException - if an error occurs that can be recovered from

process

public MuleEvent process(MuleEvent event)
                  throws MuleException
Description copied from interface: MessageProcessor
Invokes the MessageProcessor.

Specified by:
process in interface MessageProcessor
Parameters:
event - MuleEvent to be processed
Returns:
optional response MuleEvent
Throws:
MuleException

setMuleContext

public void setMuleContext(MuleContext context)
Specified by:
setMuleContext in interface MuleContextAware

setDynamicRouteResolver

public void setDynamicRouteResolver(DynamicRouteResolver routeResolver)
Parameters:
routeResolver - custom route resolver to use

setResultAggregator

public void setResultAggregator(RouterResultsHandler routerResultsHandler)
Parameters:
routerResultsHandler - result aggregator to use after routing through the routes


Copyright © 2003-2014 MuleSoft, Inc.. All Rights Reserved.