org.mule.execution
Class FlowProcessingPhase
java.lang.Object
org.mule.execution.FlowProcessingPhase
- All Implemented Interfaces:
- Comparable<MessageProcessPhase>, MessageProcessPhase<FlowProcessingPhaseTemplate>
public class FlowProcessingPhase
- extends Object
- implements MessageProcessPhase<FlowProcessingPhaseTemplate>, Comparable<MessageProcessPhase>
This phase routes the message through the flow.
To participate of this phase, MessageProcessTemplate
must implement FlowProcessingPhaseTemplate
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
protected transient Log logger
FlowProcessingPhase
public FlowProcessingPhase()
supportsTemplate
public boolean supportsTemplate(MessageProcessTemplate messageProcessTemplate)
- Description copied from interface:
MessageProcessPhase
- Determines if a certain phase supports a given template.
If phase does not supports the template instance then the phase will be skipped.
- Specified by:
supportsTemplate
in interface MessageProcessPhase<FlowProcessingPhaseTemplate>
- Parameters:
messageProcessTemplate
- template to be processed
- Returns:
- true if the phase supports this template, false otherwise
runPhase
public void runPhase(FlowProcessingPhaseTemplate flowProcessingPhaseTemplate,
MessageProcessContext messageProcessContext,
PhaseResultNotifier phaseResultNotifier)
- Description copied from interface:
MessageProcessPhase
- Process the template through the phase.
The phase execution can not throw an exception. In case of exception
PhaseResultNotifier.phaseFailure(Exception)
must be call.
- Specified by:
runPhase
in interface MessageProcessPhase<FlowProcessingPhaseTemplate>
- Parameters:
flowProcessingPhaseTemplate
- template containing message source specific behaviormessageProcessContext
- provides context information for executing the messagephaseResultNotifier
- notifier that must be advice under certain scenarios
compareTo
public int compareTo(MessageProcessPhase messageProcessPhase)
- Specified by:
compareTo
in interface Comparable<MessageProcessPhase>
Copyright © 2003-2013 MuleSoft, Inc.. All Rights Reserved.