public class DefaultMessageProcessorChainBuilder extends Object
Constructs a chain of Processors and wraps the invocation of the chain in a composite MessageProcessor. Both
MessageProcessors and InterceptingMessageProcessor's can be chained together arbitrarily in a single chain.
InterceptingMessageProcessors simply intercept the next MessageProcessor in the chain. When other non-intercepting
MessageProcessors are used an adapter is used internally to chain the MessageProcessor with the next in the chain.
The MessageProcessor instance that this builder builds can be nested in other chains as required.
| Modifier and Type | Field and Description |
|---|---|
protected FlowConstruct |
flowConstruct |
protected MuleContext |
muleContext |
protected String |
name |
protected List |
processors |
| Constructor and Description |
|---|
DefaultMessageProcessorChainBuilder() |
protected List processors
protected String name
protected FlowConstruct flowConstruct
protected MuleContext muleContext
public MessageProcessorChain build()
MessageProcessorBuilder instance.protected MessageProcessorChain createSimpleChain(List<Processor> tempList)
protected MessageProcessorChain createInterceptingChain(Processor head, List<Processor> processors, List<Processor> processorsForLifecycle)
public DefaultMessageProcessorChainBuilder chain(Processor... processors)
MessageProcessorChainBuilderProcessor by adding it the the list of processors that the builder implementation will use to construct a
MessageProcessorChainprocessors - Processor instance(s) to be used in the construction of a MessageProcessorChainMessageProcessorBuilder instance.public DefaultMessageProcessorChainBuilder chain(List<Processor> processors)
public DefaultMessageProcessorChainBuilder chain(MessageProcessorBuilder... builders)
MessageProcessorChainBuilderMessageProcessorBuilder by adding it the the list of processors builders that the builder implementation will
use to construct a MessageProcessorChain. The MessageProcessorBuilder.build() method is invoked when the
chain is constructed.builders - MessageProcessorBuilder instance(s) to be used in the construction of a MessageProcessorChainMessageProcessorBuilder instance.public DefaultMessageProcessorChainBuilder chainBefore(Processor processor)
public DefaultMessageProcessorChainBuilder chainBefore(MessageProcessorBuilder builder)
public void setName(String name)
Copyright © 2003–2017 MuleSoft, Inc.. All rights reserved.