org.mule.routing
Class ExpressionSplitter

java.lang.Object
  extended by org.mule.processor.AbstractInterceptingMessageProcessor
      extended by org.mule.routing.AbstractSplitter
          extended by org.mule.routing.ExpressionSplitter
All Implemented Interfaces:
MuleContextAware, Initialisable, InterceptingMessageProcessor, MessageProcessor, MessageSource

public class ExpressionSplitter
extends AbstractSplitter
implements Initialisable

Splits a message using the expression provided invoking the next message processor one for each split part.

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


Field Summary
protected  ExpressionConfig config
           
protected  ExpressionManager expressionManager
           
 
Fields inherited from class org.mule.routing.AbstractSplitter
enableCorrelation, messageInfoMapping, muleContext, resultsHandler
 
Fields inherited from class org.mule.processor.AbstractInterceptingMessageProcessor
logger, next
 
Fields inherited from interface org.mule.api.lifecycle.Initialisable
PHASE_NAME
 
Constructor Summary
ExpressionSplitter()
           
ExpressionSplitter(ExpressionConfig config)
           
 
Method Summary
 java.lang.String getCustomEvaluator()
           
 java.lang.String getEvaluator()
           
 java.lang.String getExpression()
           
 void initialise()
          Method used to perform any initialisation work.
 void setCustomEvaluator(java.lang.String customEvaluator)
           
 void setEvaluator(java.lang.String evaluator)
           
 void setExpression(java.lang.String expression)
           
protected  java.util.List<MuleMessage> splitMessage(MuleEvent event)
           
 
Methods inherited from class org.mule.routing.AbstractSplitter
isSplitRequired, process, processParts, setEnableCorrelation, setMessageInfoMapping, setMuleContext
 
Methods inherited from class org.mule.processor.AbstractInterceptingMessageProcessor
processNext, setListener, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

expressionManager

protected ExpressionManager expressionManager

config

protected ExpressionConfig config
Constructor Detail

ExpressionSplitter

public ExpressionSplitter()

ExpressionSplitter

public ExpressionSplitter(ExpressionConfig config)
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

splitMessage

protected java.util.List<MuleMessage> splitMessage(MuleEvent event)
Specified by:
splitMessage in class AbstractSplitter

getCustomEvaluator

public java.lang.String getCustomEvaluator()

setCustomEvaluator

public void setCustomEvaluator(java.lang.String customEvaluator)

getEvaluator

public java.lang.String getEvaluator()

setEvaluator

public void setEvaluator(java.lang.String evaluator)

getExpression

public java.lang.String getExpression()

setExpression

public void setExpression(java.lang.String expression)


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