public class ModuleFlowProcessingPhase extends NotificationFiringProcessingPhase<ModuleFlowProcessingPhaseTemplate> implements org.mule.runtime.api.lifecycle.Initialisable
To participate of this phase, MessageProcessTemplate must implement ModuleFlowProcessingPhaseTemplate
This implementation will know how to process messages from extension's sources
| Modifier and Type | Field and Description |
|---|---|
static String |
ENABLE_SOURCE_POLICIES_SYSTEM_PROPERTY |
logger, muleContext| Constructor and Description |
|---|
ModuleFlowProcessingPhase(PolicyManager policyManager) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(MessageProcessPhase messageProcessPhase) |
void |
initialise() |
void |
runPhase(ModuleFlowProcessingPhaseTemplate template,
MessageProcessContext messageProcessContext,
PhaseResultNotifier phaseResultNotifier)
Process the template through the phase.
|
boolean |
supportsTemplate(MessageProcessTemplate messageProcessTemplate)
Determines if a certain phase supports a given template.
|
fireNotification, getNotificationHelper, setMuleContextpublic static final String ENABLE_SOURCE_POLICIES_SYSTEM_PROPERTY
public ModuleFlowProcessingPhase(PolicyManager policyManager)
public void initialise()
throws org.mule.runtime.api.lifecycle.InitialisationException
initialise in interface org.mule.runtime.api.lifecycle.Initialisableorg.mule.runtime.api.lifecycle.InitialisationExceptionpublic boolean supportsTemplate(MessageProcessTemplate messageProcessTemplate)
MessageProcessPhasesupportsTemplate in interface MessageProcessPhase<ModuleFlowProcessingPhaseTemplate>messageProcessTemplate - template to be processedpublic void runPhase(ModuleFlowProcessingPhaseTemplate template, MessageProcessContext messageProcessContext, PhaseResultNotifier phaseResultNotifier)
MessageProcessPhasePhaseResultNotifier.phaseFailure(Exception) must
be call.runPhase in interface MessageProcessPhase<ModuleFlowProcessingPhaseTemplate>template - template containing message source specific behaviormessageProcessContext - provides context information for executing the messagephaseResultNotifier - notifier that must be advice under certain scenariospublic int compareTo(MessageProcessPhase messageProcessPhase)
compareTo in interface Comparable<MessageProcessPhase>Copyright © 2003–2017 MuleSoft, Inc.. All rights reserved.