org.mule.construct
Class SimpleFlowConstruct
java.lang.Object
org.mule.construct.AbstractFlowConstruct
org.mule.construct.SimpleFlowConstruct
- All Implemented Interfaces:
- FlowConstruct, Disposable, Initialisable, Lifecycle, LifecycleStateEnabled, Startable, Stoppable, MessageProcessor
- Direct Known Subclasses:
- IBeanFlowConstruct
public class SimpleFlowConstruct
- extends AbstractFlowConstruct
- implements MessageProcessor
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
DefaultMessageProcessorChainBuilder.
If not message processors are configured then the source message is simply
returned.
| Methods inherited from class org.mule.construct.AbstractFlowConstruct |
createMessageProcessor, dispose, disposeIfDisposable, doDispose, doInitialise, doStart, doStop, getExceptionListener, getLifecycleState, getMessageInfoMapping, getMessageProcessorChain, getMessageSource, getMuleContext, getName, getStatistics, getThreadingProfile, initialise, initialiseIfInitialisable, injectFlowConstructMuleContext, isStarted, isStopped, isStopping, setExceptionListener, setMessageInfoMapping, setMessageSource, start, startIfStartable, stop, stopIfStoppable, toString, validateConstruct |
messageProcessors
protected List<MessageProcessor> messageProcessors
workManager
protected WorkManager workManager
SimpleFlowConstruct
public SimpleFlowConstruct(String name,
MuleContext muleContext)
configureMessageProcessors
protected void configureMessageProcessors(MessageProcessorChainBuilder 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 DefaultMessageProcessorChainBuilder
setThreadingProfile
public void setThreadingProfile(ThreadingProfile threadingProfile)
setMessageProcessors
public void setMessageProcessors(List<MessageProcessor> messageProcessors)
getMessageProcessors
public List<MessageProcessor> getMessageProcessors()
setEndpoint
@Deprecated
public void setEndpoint(InboundEndpoint endpoint)
- Deprecated. use setMessageSource(MessageSource) instead
getConstructType
public String getConstructType()
- Specified by:
getConstructType in class AbstractFlowConstruct
- Returns:
- the type of construct being created, e.g. "Flow"
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
Copyright © 2003-2011 MuleSoft, Inc.. All Rights Reserved.