org.mule.construct
Class Validator
java.lang.Object
org.mule.construct.AbstractFlowConstruct
org.mule.construct.Validator
- All Implemented Interfaces:
- FlowConstruct, Disposable, Initialisable, Lifecycle, LifecycleStateEnabled, Startable, Stoppable
public class Validator
- extends AbstractFlowConstruct
Constructor Summary |
Validator(String name,
MuleContext muleContext,
MessageSource messageSource,
OutboundEndpoint outboundEndpoint,
Filter validationFilter,
String ackExpression,
String nackExpression)
|
Validator(String name,
MuleContext muleContext,
MessageSource messageSource,
OutboundEndpoint outboundEndpoint,
Filter validationFilter,
String ackExpression,
String nackExpression,
String errorExpression)
|
Methods inherited from class org.mule.construct.AbstractFlowConstruct |
createMessageProcessor, dispose, disposeIfDisposable, doDispose, doInitialise, doStart, doStop, getExceptionListener, getLifecycleState, getMessageInfoMapping, getMessageProcessorChain, getMessageSource, getMuleContext, getName, getStatistics, getThreadingProfile, initialise, initialiseIfInitialisable, injectFlowConstructMuleContext, isStarted, isStopped, isStopping, setExceptionListener, setMessageInfoMapping, setMessageSource, start, startIfStartable, stop, stopIfStoppable, toString |
Validator
public Validator(String name,
MuleContext muleContext,
MessageSource messageSource,
OutboundEndpoint outboundEndpoint,
Filter validationFilter,
String ackExpression,
String nackExpression)
Validator
public Validator(String name,
MuleContext muleContext,
MessageSource messageSource,
OutboundEndpoint outboundEndpoint,
Filter validationFilter,
String ackExpression,
String nackExpression,
String errorExpression)
configureMessageProcessors
protected void configureMessageProcessors(MessageProcessorChainBuilder builder)
- Description copied from class:
AbstractFlowConstruct
- Used to configure the processing chain for this
FlowConstuct
MessageProcessor
s to the chain using the builder provided.
To use a different builder of to construct a composite
MessageProcessor
manually override AbstractFlowConstruct.createMessageProcessor()
instead.
- Specified by:
configureMessageProcessors
in class AbstractFlowConstruct
- Parameters:
builder
- instance of DefaultMessageProcessorChainBuilder
validateConstruct
protected void validateConstruct()
throws FlowConstructInvalidException
- Description copied from class:
AbstractFlowConstruct
- Validates configured flow construct
- Overrides:
validateConstruct
in class AbstractFlowConstruct
- Throws:
FlowConstructInvalidException
- if the flow construct does not pass
validation
hasErrorExpression
protected boolean hasErrorExpression()
getConstructType
public String getConstructType()
- Specified by:
getConstructType
in class AbstractFlowConstruct
- Returns:
- the type of construct being created, e.g. "Flow"
Copyright © 2003-2010 MuleSoft, Inc.. All Rights Reserved.