org.mule.processor.builder
Class InterceptingChainMessageProcessorBuilder
java.lang.Object
org.mule.processor.builder.InterceptingChainMessageProcessorBuilder
- All Implemented Interfaces:
- MessageProcessorBuilder
- Direct Known Subclasses:
- EndpointInterceptingChainMessageProcessorBuilder
public class InterceptingChainMessageProcessorBuilder
- extends java.lang.Object
- implements MessageProcessorBuilder
Constructs a chain of MessageProcessor
s 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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
processors
protected java.util.List processors
name
protected java.lang.String name
flowConstruct
protected FlowConstruct flowConstruct
InterceptingChainMessageProcessorBuilder
public InterceptingChainMessageProcessorBuilder()
InterceptingChainMessageProcessorBuilder
public InterceptingChainMessageProcessorBuilder(FlowConstruct flowConstruct)
build
public MessageProcessor build()
throws MuleException
- Specified by:
build
in interface MessageProcessorBuilder
- Throws:
MuleException
initializeMessageProcessor
protected MessageProcessor initializeMessageProcessor(java.lang.Object processor)
throws MuleException
- Throws:
MuleException
setName
public void setName(java.lang.String name)
chain
public InterceptingChainMessageProcessorBuilder chain(MessageProcessor... processors)
chain
public InterceptingChainMessageProcessorBuilder chain(java.util.List<MessageProcessor> processors)
chain
public InterceptingChainMessageProcessorBuilder chain(MessageProcessorBuilder... builders)
chainBefore
public InterceptingChainMessageProcessorBuilder chainBefore(MessageProcessor processor)
chainBefore
public InterceptingChainMessageProcessorBuilder chainBefore(MessageProcessorBuilder builder)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
Copyright © 2003-2010 MuleSoft, Inc.. All Rights Reserved.