public class FlowConfiguringMessageProcessor extends Object implements FlowConstructAware, Lifecycle, InterceptingMessageProcessor, MessageProcessorContainer
MessageProcessorBuilder
and configures it lazily so it can
be injected with the FlowConstruct
.PHASE_NAME
PHASE_NAME
PHASE_NAME
PHASE_NAME
Constructor and Description |
---|
FlowConfiguringMessageProcessor(MessageProcessorBuilder builder) |
Modifier and Type | Method and Description |
---|---|
void |
addMessageProcessorPathElements(MessageProcessorPathElement pathElement)
Add the child nodes to the path element tree.
|
void |
dispose()
A lifecycle method where implementor should free up any resources.
|
MessageProcessorBuilder |
getMessageProcessorBuilder() |
MessageProcessor |
getWrappedMessageProcessor()
The MessageProcessor that this class built.
|
void |
initialise()
Method used to perform any initialisation work.
|
MuleEvent |
process(MuleEvent event)
Invokes the MessageProcessor.
|
void |
setFlowConstruct(FlowConstruct flowConstruct) |
void |
setListener(MessageProcessor listener)
Set the MessageProcessor listener on a message source which will be invoked
when a message is received or generated.
|
void |
start() |
void |
stop() |
public FlowConfiguringMessageProcessor(MessageProcessorBuilder builder)
public void setListener(MessageProcessor listener)
MessageSource
setListener
in interface MessageSource
public MuleEvent process(MuleEvent event) throws MuleException
MessageProcessor
process
in interface MessageProcessor
event
- MuleEvent to be processedMuleException
public void start() throws MuleException
start
in interface Startable
MuleException
public void setFlowConstruct(FlowConstruct flowConstruct)
setFlowConstruct
in interface FlowConstructAware
public void dispose()
Disposable
dispose
in interface Disposable
public void stop() throws MuleException
stop
in interface Stoppable
MuleException
public void initialise() throws InitialisationException
Initialisable
InitialisationException
should be thrown,
causing the Mule instance to shutdown. If the error is recoverable, say by
retrying to connect, a RecoverableException
should be thrown.
There is no guarantee that by throwing a Recoverable exception that the Mule
instance will not shut down.initialise
in interface Initialisable
InitialisationException
- if a fatal error occurs causing the Mule instance to shutdownRecoverableException
- if an error occurs that can be recovered frompublic MessageProcessor getWrappedMessageProcessor()
public MessageProcessorBuilder getMessageProcessorBuilder()
public void addMessageProcessorPathElements(MessageProcessorPathElement pathElement)
MessageProcessorContainer
addMessageProcessorPathElements
in interface MessageProcessorContainer
Copyright © 2003–2015 MuleSoft, Inc.. All rights reserved.