org.mule.execution
Class MuleMessageProcessingManager
java.lang.Object
org.mule.execution.MuleMessageProcessingManager
- All Implemented Interfaces:
- MuleContextAware, Initialisable, MessageProcessingManager
public class MuleMessageProcessingManager
- extends Object
- implements MessageProcessingManager, MuleContextAware, Initialisable
Default implementation for MessageProcessingManager
.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MuleMessageProcessingManager
public MuleMessageProcessingManager()
processMessage
public void processMessage(MessageProcessTemplate messageProcessTemplate,
MessageProcessContext messageProcessContext)
- Description copied from interface:
MessageProcessingManager
- Process a message through a set of execution phases.
At bear minimum three phases will be executed:
-
ValidationPhase
which will validates the message content.
If message context is invalid then it will discard the message
- FlowProcessingPhase
which will route the message through it's flow configuration
- EndProcessPhase
which will be executed after all the phases have been executed
- Specified by:
processMessage
in interface MessageProcessingManager
- Parameters:
messageProcessTemplate
- contains template methods that will be executed by each phase in specific parts of the phase so
the MessageSource
can apply custom logic during message processing.
The message will participate only on those phases were the template defines the required template methodsmessageProcessContext
- defines the context of execution of the message
setMuleContext
public void setMuleContext(MuleContext context)
- Specified by:
setMuleContext
in interface MuleContextAware
initialise
public void initialise()
throws InitialisationException
- Description copied from interface:
Initialisable
- Method used to perform any initialisation work. If a fatal error occurs during
initialisation an
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.
- Specified by:
initialise
in interface Initialisable
- Throws:
InitialisationException
- if a fatal error occurs causing the Mule instance to shutdown
RecoverableException
- if an error occurs that can be recovered from
Copyright © 2003-2014 MuleSoft, Inc.. All Rights Reserved.