org.mule.construct
Class AbstractConfigurationPattern

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

public abstract class AbstractConfigurationPattern
extends AbstractPipeline

A template class for configuration patterns, which takes care of setting common message processors and optional transformers defined on the pattern.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.mule.construct.AbstractPipeline
AbstractPipeline.ProcessIfPipelineStartedMessageProcessor
 
Field Summary
protected  List<MessageProcessor> responseTransformers
           
protected  List<MessageProcessor> 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
AbstractConfigurationPattern(String name, MuleContext muleContext, List<MessageProcessor> transformers, List<MessageProcessor> responseTransformers)
           
 
Method Summary
protected  void configureMessageProcessors(MessageProcessorChainBuilder builder)
           
protected abstract  void configureMessageProcessorsAfterTransformation(MessageProcessorChainBuilder builder)
           
protected abstract  void configureMessageProcessorsBeforeTransformation(MessageProcessorChainBuilder builder)
           
protected  void configurePreProcessors(MessageProcessorChainBuilder builder)
           
 boolean hasResponseTransformers()
           
 boolean hasTransformers()
           
 void setProcessingStrategy(ProcessingStrategy processingStrategy)
           
 
Methods inherited from class org.mule.construct.AbstractPipeline
addMessageProcessorPathElements, configurePostProcessors, createPipeline, doDispose, doInitialise, doStart, doStop, getMessageProcessors, getMessageSource, getProcessingStrategy, getProcessorPath, isRedeliveryPolicyConfigured, isSynchronous, setMessageProcessors, setMessageSource, validateConstruct
 
Methods inherited from class org.mule.construct.AbstractFlowConstruct
configureStatistics, dispose, disposeIfDisposable, getAnnotation, getAnnotations, getConstructType, 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
 

Field Detail

transformers

protected final List<MessageProcessor> transformers

responseTransformers

protected final List<MessageProcessor> responseTransformers
Constructor Detail

AbstractConfigurationPattern

public AbstractConfigurationPattern(String name,
                                    MuleContext muleContext,
                                    List<MessageProcessor> transformers,
                                    List<MessageProcessor> responseTransformers)
Method Detail

configureMessageProcessors

protected final void configureMessageProcessors(MessageProcessorChainBuilder builder)
                                         throws MuleException
Overrides:
configureMessageProcessors in class AbstractPipeline
Throws:
MuleException

configurePreProcessors

protected void configurePreProcessors(MessageProcessorChainBuilder builder)
                               throws MuleException
Overrides:
configurePreProcessors in class AbstractPipeline
Throws:
MuleException

hasTransformers

public boolean hasTransformers()

hasResponseTransformers

public boolean hasResponseTransformers()

setProcessingStrategy

public final void setProcessingStrategy(ProcessingStrategy processingStrategy)
Specified by:
setProcessingStrategy in interface Pipeline
Overrides:
setProcessingStrategy in class AbstractPipeline

configureMessageProcessorsBeforeTransformation

protected abstract void configureMessageProcessorsBeforeTransformation(MessageProcessorChainBuilder builder)
                                                                throws MuleException
Throws:
MuleException

configureMessageProcessorsAfterTransformation

protected abstract void configureMessageProcessorsAfterTransformation(MessageProcessorChainBuilder builder)
                                                               throws MuleException
Throws:
MuleException


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