org.mule.processor
Class AbstractDynamicMessageProcessor

java.lang.Object
  extended by org.mule.processor.AbstractDynamicMessageProcessor
All Implemented Interfaces:
MessageProcessor

public abstract class AbstractDynamicMessageProcessor
extends Object
implements MessageProcessor

Implementation of MessageProcessor that dynamically chooses and uses another MessageProcessor


Constructor Summary
AbstractDynamicMessageProcessor()
           
 
Method Summary
 MuleEvent process(MuleEvent event)
          Invokes the MessageProcessor.
protected abstract  MessageProcessor resolveMessageProcessor(MuleEvent event)
          Determines which MessageProcessor should be used.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbstractDynamicMessageProcessor

public AbstractDynamicMessageProcessor()
Method Detail

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

resolveMessageProcessor

protected abstract MessageProcessor resolveMessageProcessor(MuleEvent event)
                                                     throws MuleException
Determines which MessageProcessor should be used. Implementations may choose to use a message property, configure this

Throws:
MuleException

toString

public String toString()
Overrides:
toString in class Object


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