org.mule.construct
Class Validator

java.lang.Object
  extended by org.mule.construct.AbstractFlowConstruct
      extended by org.mule.construct.AbstractPipeline
          extended by org.mule.construct.AbstractConfigurationPattern
              extended by org.mule.construct.Validator
All Implemented Interfaces:
AnnotatedObject, FlowConstruct, MessageProcessorPathResolver, Pipeline, Disposable, Initialisable, Lifecycle, LifecycleStateEnabled, Startable, Stoppable, NamedObject, MessageProcessorContainer, ProcessingDescriptor

public class Validator
extends AbstractConfigurationPattern


Nested Class Summary
 
Nested classes/interfaces inherited from class org.mule.construct.AbstractPipeline
AbstractPipeline.ProcessIfPipelineStartedMessageProcessor
 
Field Summary
 
Fields inherited from class org.mule.construct.AbstractConfigurationPattern
responseTransformers, transformers
 
Fields inherited from class org.mule.construct.AbstractPipeline
messageProcessors, messageSource, pipeline, processingStrategy
 
Fields inherited from class org.mule.construct.AbstractFlowConstruct
exceptionListener, INITIAL_STATE_STARTED, INITIAL_STATE_STOPPED, initialState, lifecycleManager, logger, messageInfoMapping, muleContext, name, statistics
 
Fields inherited from interface org.mule.api.lifecycle.Initialisable
PHASE_NAME
 
Fields inherited from interface org.mule.api.lifecycle.Startable
PHASE_NAME
 
Fields inherited from interface org.mule.api.lifecycle.Stoppable
PHASE_NAME
 
Fields inherited from interface org.mule.api.lifecycle.Disposable
PHASE_NAME
 
Fields inherited from interface org.mule.api.AnnotatedObject
PROPERTY_NAME
 
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)
           
 
Method Summary
protected  void configureMessageProcessorsAfterTransformation(MessageProcessorChainBuilder builder)
           
protected  void configureMessageProcessorsBeforeTransformation(MessageProcessorChainBuilder builder)
           
 String getConstructType()
           
protected  boolean hasErrorExpression()
           
protected  void validateConstruct()
          Validates configured flow construct
 
Methods inherited from class org.mule.construct.AbstractConfigurationPattern
configureMessageProcessors, configurePreProcessors, hasResponseTransformers, hasTransformers, setProcessingStrategy
 
Methods inherited from class org.mule.construct.AbstractPipeline
addMessageProcessorPathElements, configurePostProcessors, createPipeline, doDispose, doInitialise, doStart, doStop, getMessageProcessors, getMessageSource, getProcessingStrategy, getProcessorPath, isRedeliveryPolicyConfigured, isSynchronous, setMessageProcessors, setMessageSource
 
Methods inherited from class org.mule.construct.AbstractFlowConstruct
configureStatistics, dispose, disposeIfDisposable, getAnnotation, getAnnotations, getExceptionListener, getInitialState, getLifecycleState, getMessageInfoMapping, getMuleContext, getName, getStatistics, initialise, initialiseIfInitialisable, injectFlowConstructMuleContext, isStarted, isStopped, isStopping, setAnnotations, setExceptionListener, setInitialState, setMessageInfoMapping, start, startIfStartable, stop, stopIfStoppable, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.mule.api.construct.FlowConstruct
getExceptionListener, getMessageInfoMapping, getMuleContext, getStatistics
 
Methods inherited from interface org.mule.api.NamedObject
getName
 
Methods inherited from interface org.mule.api.lifecycle.LifecycleStateEnabled
getLifecycleState
 

Constructor Detail

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)
Method Detail

configureMessageProcessorsBeforeTransformation

protected void configureMessageProcessorsBeforeTransformation(MessageProcessorChainBuilder builder)
Specified by:
configureMessageProcessorsBeforeTransformation in class AbstractConfigurationPattern

configureMessageProcessorsAfterTransformation

protected void configureMessageProcessorsAfterTransformation(MessageProcessorChainBuilder builder)
Specified by:
configureMessageProcessorsAfterTransformation in class AbstractConfigurationPattern

validateConstruct

protected void validateConstruct()
                          throws FlowConstructInvalidException
Description copied from class: AbstractFlowConstruct
Validates configured flow construct

Overrides:
validateConstruct in class AbstractPipeline
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-2014 MuleSoft, Inc.. All Rights Reserved.