org.mule.construct
Class DynamicPipelineMessageProcessor

java.lang.Object
  extended by org.mule.processor.AbstractInterceptingMessageProcessorBase
      extended by org.mule.processor.AbstractInterceptingMessageProcessor
          extended by org.mule.construct.DynamicPipelineMessageProcessor
All Implemented Interfaces:
AnnotatedObject, MuleContextAware, DynamicPipeline, InterceptingMessageProcessor, MessageProcessor, MessageProcessorContainer, MessageSource

public class DynamicPipelineMessageProcessor
extends AbstractInterceptingMessageProcessor
implements DynamicPipeline

Experimental implementation that supports a single dynamic pipeline due to restrictions imposed by intercepting message processors and their lifecycle. If more than one client tries to use the functionality the 2nd one will fail due to pipeline ID verification.


Field Summary
 
Fields inherited from class org.mule.processor.AbstractInterceptingMessageProcessorBase
logger, muleContext, next, notificationHandler
 
Fields inherited from interface org.mule.api.AnnotatedObject
PROPERTY_NAME
 
Constructor Summary
DynamicPipelineMessageProcessor(Flow flow)
           
 
Method Summary
 DynamicPipelineBuilder dynamicPipeline(String id)
          Provide access to a DynamicPipelineBuilder that allows modifying the dynamic pipeline injecting message processors and resetting the pipeline
 MuleEvent process(MuleEvent event)
          Invokes the MessageProcessor.
 void setListener(MessageProcessor next)
          Set the MessageProcessor listener on a message source which will be invoked when a message is received or generated.
 
Methods inherited from class org.mule.processor.AbstractInterceptingMessageProcessorBase
addMessageProcessorPathElements, getAnnotation, getAnnotations, getListener, getMuleContext, isEventValid, processNext, setAnnotations, setMuleContext, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DynamicPipelineMessageProcessor

public DynamicPipelineMessageProcessor(Flow flow)
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

setListener

public void setListener(MessageProcessor next)
Description copied from interface: MessageSource
Set the MessageProcessor listener on a message source which will be invoked when a message is received or generated.

Specified by:
setListener in interface MessageSource
Overrides:
setListener in class AbstractInterceptingMessageProcessorBase

dynamicPipeline

public DynamicPipelineBuilder dynamicPipeline(String id)
                                       throws DynamicPipelineException
Description copied from interface: DynamicPipeline
Provide access to a DynamicPipelineBuilder that allows modifying the dynamic pipeline injecting message processors and resetting the pipeline

Specified by:
dynamicPipeline in interface DynamicPipeline
Parameters:
id - dynamic pipeline ID
Returns:
a DynamicPipelineBuilder that allows modifying the dynamic pipeline
Throws:
DynamicPipelineException - if the pipeline ID is not valid


Copyright © 2003–2014 MuleSoft, Inc.. All rights reserved.