org.mule.routing
Class CollectionSplitter

java.lang.Object
  extended by org.mule.processor.AbstractInterceptingMessageProcessorBase
      extended by org.mule.processor.AbstractInterceptingMessageProcessor
          extended by org.mule.routing.outbound.AbstractMessageSequenceSplitter
              extended by org.mule.routing.CollectionSplitter
All Implemented Interfaces:
AnnotatedObject, MuleContextAware, InterceptingMessageProcessor, MessageProcessor, MessageSource

public class CollectionSplitter
extends AbstractMessageSequenceSplitter

Splits a message that has a Collection, Iterable, MessageSequence or Iterator payload invoking the next message processor one for each item in it.

EIP Reference: http ://www.eaipatterns.com/Sequencer.html


Field Summary
 
Fields inherited from class org.mule.routing.outbound.AbstractMessageSequenceSplitter
batchSize, counterVariableName, enableCorrelation, messageInfoMapping, muleContext, resultsHandler
 
Fields inherited from class org.mule.processor.AbstractInterceptingMessageProcessorBase
logger, next, notificationHandler
 
Fields inherited from interface org.mule.api.AnnotatedObject
PROPERTY_NAME
 
Constructor Summary
CollectionSplitter()
           
 
Method Summary
protected  MessageSequence<?> splitMessageIntoSequence(MuleEvent event)
          Converts the event into a MessageSequence that will retrieve each of the event elements
 
Methods inherited from class org.mule.routing.outbound.AbstractMessageSequenceSplitter
isSplitRequired, process, processParts, setBatchSize, setCounterVariableName, setEnableCorrelation, setMessageInfoMapping, setMuleContext
 
Methods inherited from class org.mule.processor.AbstractInterceptingMessageProcessorBase
getAnnotation, getAnnotations, getListener, getMuleContext, isEventValid, processNext, setAnnotations, setListener, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.mule.api.source.MessageSource
setListener
 

Constructor Detail

CollectionSplitter

public CollectionSplitter()
Method Detail

splitMessageIntoSequence

protected MessageSequence<?> splitMessageIntoSequence(MuleEvent event)
Description copied from class: AbstractMessageSequenceSplitter
Converts the event into a MessageSequence that will retrieve each of the event elements

Specified by:
splitMessageIntoSequence in class AbstractMessageSequenceSplitter
Parameters:
event - the event to split
Returns:
a sequence of elements


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