public class ValidationPhase extends Object implements MessageProcessPhase<ValidationPhaseTemplate>, Comparable<MessageProcessPhase>
MessageProcessTemplate
must implement
ValidationPhaseTemplate
.Constructor and Description |
---|
ValidationPhase() |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(MessageProcessPhase messageProcessPhase) |
void |
runPhase(ValidationPhaseTemplate validationPhaseTemplate,
MessageProcessContext messageProcessContext,
PhaseResultNotifier phaseResultNotifier)
Process the template through the phase.
|
boolean |
supportsTemplate(MessageProcessTemplate messageProcessTemplate)
Determines if a certain phase supports a given template.
|
public boolean supportsTemplate(MessageProcessTemplate messageProcessTemplate)
MessageProcessPhase
supportsTemplate
in interface MessageProcessPhase<ValidationPhaseTemplate>
messageProcessTemplate
- template to be processedpublic void runPhase(ValidationPhaseTemplate validationPhaseTemplate, MessageProcessContext messageProcessContext, PhaseResultNotifier phaseResultNotifier)
MessageProcessPhase
PhaseResultNotifier.phaseFailure(Exception)
must be call.runPhase
in interface MessageProcessPhase<ValidationPhaseTemplate>
validationPhaseTemplate
- 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–2016 MuleSoft, Inc.. All rights reserved.