org.mule.api.devkit
Class NestedProcessorChain

java.lang.Object
  extended by org.mule.api.devkit.NestedProcessorChain
All Implemented Interfaces:
MuleContextAware, NestedProcessor

public class NestedProcessorChain
extends Object
implements NestedProcessor, MuleContextAware


Constructor Summary
NestedProcessorChain(MuleEvent event, MuleContext muleContext, MessageProcessor chain)
           
 
Method Summary
 Object process()
          Dispatch original message to the processor chain
 Object process(Object payload)
          Dispatch message to the processor chain
 Object process(Object payload, Map<String,Object> properties)
          Dispatch message to the processor chain
 Object processWithExtraProperties(Map<String,Object> properties)
          Dispatch original message to the processor chain
 void setChain(MessageProcessor value)
          Sets chain
 void setEvent(MuleEvent value)
          Sets event
 void setMuleContext(MuleContext value)
          Sets muleContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NestedProcessorChain

public NestedProcessorChain(MuleEvent event,
                            MuleContext muleContext,
                            MessageProcessor chain)
Method Detail

setMuleContext

public void setMuleContext(MuleContext value)
Sets muleContext

Specified by:
setMuleContext in interface MuleContextAware
Parameters:
value - Value to set

setChain

public void setChain(MessageProcessor value)
Sets chain

Parameters:
value - Value to set

setEvent

public void setEvent(MuleEvent value)
Sets event

Parameters:
value - Value to set

process

public Object process()
               throws Exception
Description copied from interface: NestedProcessor
Dispatch original message to the processor chain

Specified by:
process in interface NestedProcessor
Returns:
The return payload for the processor chain
Throws:
Exception

process

public Object process(Object payload)
               throws Exception
Description copied from interface: NestedProcessor
Dispatch message to the processor chain

Specified by:
process in interface NestedProcessor
Parameters:
payload - The payload of the message
Returns:
The return payload for the processor chain
Throws:
Exception

processWithExtraProperties

public Object processWithExtraProperties(Map<String,Object> properties)
                                  throws Exception
Description copied from interface: NestedProcessor
Dispatch original message to the processor chain

Specified by:
processWithExtraProperties in interface NestedProcessor
Parameters:
properties - Additional invocation properties
Returns:
The return payload for the processor chain
Throws:
Exception

process

public Object process(Object payload,
                      Map<String,Object> properties)
               throws Exception
Description copied from interface: NestedProcessor
Dispatch message to the processor chain

Specified by:
process in interface NestedProcessor
Parameters:
payload - The payload of the message
properties - Additional invocation properties
Returns:
The return payload for the processor chain
Throws:
Exception


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