org.mule.construct
Class SimpleFlowConstruct

java.lang.Object
  extended by org.mule.construct.AbstractFlowConstruct
      extended by org.mule.construct.SimpleFlowConstruct
All Implemented Interfaces:
FlowConstruct, Disposable, Initialisable, Lifecycle, LifecycleStateEnabled, Startable, Stoppable, MessageProcessor
Direct Known Subclasses:
IBeanFlowConstruct

public class SimpleFlowConstruct
extends AbstractFlowConstruct

Simple implementation of AbstractFlowConstruct that allows a list of MessageProcessors that will be used to process messages to be configured. These MessageProcessors are chained together using the InterceptingChainMessageProcessorBuilder.

If not message processors are configured then the source message is simply returned.


Field Summary
protected  List<MessageProcessor> messageProcessors
           
 
Fields inherited from class org.mule.construct.AbstractFlowConstruct
exceptionListener, lifecycleManager, logger, messageInfoMapping, messageProcessorChain, messageSource, muleContext, name, statistics
 
Fields inherited from interface org.mule.api.lifecycle.Initialisable
PHASE_NAME
 
Fields inherited from interface org.mule.api.lifecycle.Startable
PHASE_NAME
 
Fields inherited from interface org.mule.api.lifecycle.Stoppable
PHASE_NAME
 
Fields inherited from interface org.mule.api.lifecycle.Disposable
PHASE_NAME
 
Constructor Summary
SimpleFlowConstruct(String name, MuleContext muleContext)
           
 
Method Summary
protected  void configureMessageProcessors(InterceptingChainMessageProcessorBuilder builder)
          Used to configure the processing chain for this FlowConstuctMessageProcessors to the chain using the builder provided.
 List<MessageProcessor> getMessageProcessors()
           
 void setEndpoint(InboundEndpoint endpoint)
          Deprecated. 
 void setMessageProcessors(List<MessageProcessor> messageProcessors)
           
 
Methods inherited from class org.mule.construct.AbstractFlowConstruct
createMessageProcessor, dispose, doDispose, doInitialise, doStart, doStop, getExceptionListener, getLifecycleState, getMessageInfoMapping, getMessageSource, getMuleContext, getName, getStatistics, initialise, isStarted, isStopped, isStopping, process, setExceptionListener, setMessageInfoMapping, setMessageSource, start, stop, toString, validateConstruct
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

messageProcessors

protected List<MessageProcessor> messageProcessors
Constructor Detail

SimpleFlowConstruct

public SimpleFlowConstruct(String name,
                           MuleContext muleContext)
Method Detail

setMessageProcessors

public void setMessageProcessors(List<MessageProcessor> messageProcessors)

getMessageProcessors

public List<MessageProcessor> getMessageProcessors()

configureMessageProcessors

protected void configureMessageProcessors(InterceptingChainMessageProcessorBuilder builder)
Description copied from class: AbstractFlowConstruct
Used to configure the processing chain for this FlowConstuctMessageProcessors to the chain using the builder provided.

To use a different builder of to construct a composite MessageProcessor manually override AbstractFlowConstruct.createMessageProcessor() instead.

Specified by:
configureMessageProcessors in class AbstractFlowConstruct
Parameters:
builder - instance of InterceptingChainMessageProcessorBuilder

setEndpoint

@Deprecated
public void setEndpoint(InboundEndpoint endpoint)
Deprecated. 



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