org.mule.execution
Class EndProcessPhase

java.lang.Object
  extended by org.mule.execution.EndProcessPhase
All Implemented Interfaces:
MessageProcessPhase<EndPhaseTemplate>

public class EndProcessPhase
extends Object
implements MessageProcessPhase<EndPhaseTemplate>

This phase notifies to the MessageProcessTemplate that the message processing has ended. To participate on this phase MessageProcessTemplate must implement EndPhaseTemplate.


Constructor Summary
EndProcessPhase()
           
 
Method Summary
 void runPhase(EndPhaseTemplate messageProcessTemplate, MessageProcessContext messageProcessContext, PhaseResultNotifier phaseResultNotifier)
          Process the template through the phase.
 boolean supportsTemplate(MessageProcessTemplate messageProcessTemplate)
          Determines if a certain phase supports a given template.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EndProcessPhase

public EndProcessPhase()
Method Detail

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<EndPhaseTemplate>
Parameters:
messageProcessTemplate - template to be processed
Returns:
true if the phase supports this template, false otherwise

runPhase

public void runPhase(EndPhaseTemplate messageProcessTemplate,
                     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<EndPhaseTemplate>
Parameters:
messageProcessTemplate - template containing message source specific behavior
messageProcessContext - provides context information for executing the message
phaseResultNotifier - notifier that must be advice under certain scenarios


Copyright © 2003-2014 MuleSoft, Inc.. All Rights Reserved.