public abstract class AbstractMessageProcessorChain extends Object implements NonBlockingMessageProcessor, MessageProcessorChain, Lifecycle, FlowConstructAware, MuleContextAware, EndpointAware, MessageProcessorContainer, MessagingExceptionHandlerAware
| Modifier and Type | Field and Description |
|---|---|
protected FlowConstruct |
flowConstruct |
protected org.apache.commons.logging.Log |
log |
protected String |
name |
protected List<MessageProcessor> |
processors |
PHASE_NAMEPHASE_NAMEPHASE_NAMEPHASE_NAME| Constructor and Description |
|---|
AbstractMessageProcessorChain(String name,
List<MessageProcessor> processors) |
| Modifier and Type | Method and Description |
|---|---|
void |
addMessageProcessorPathElements(MessageProcessorPathElement pathElement)
Add the child nodes to the path element tree.
|
void |
dispose()
A lifecycle method where implementor should free up any resources.
|
protected abstract MuleEvent |
doProcess(MuleEvent event) |
List<MessageProcessor> |
getMessageProcessors() |
String |
getName()
Gets the name of the object
|
void |
initialise()
Method used to perform any initialisation work.
|
MuleEvent |
process(MuleEvent event)
Invokes the MessageProcessor.
|
void |
setEndpoint(ImmutableEndpoint endpoint) |
void |
setFlowConstruct(FlowConstruct flowConstruct) |
void |
setMessagingExceptionHandler(MessagingExceptionHandler messagingExceptionHandler) |
void |
setMuleContext(MuleContext context) |
void |
start() |
void |
stop() |
String |
toString() |
protected final transient org.apache.commons.logging.Log log
protected String name
protected List<MessageProcessor> processors
protected FlowConstruct flowConstruct
public AbstractMessageProcessorChain(String name, List<MessageProcessor> processors)
public MuleEvent process(MuleEvent event) throws MuleException
MessageProcessorprocess in interface MessageProcessorevent - MuleEvent to be processedMuleExceptionprotected abstract MuleEvent doProcess(MuleEvent event) throws MuleException
MuleExceptionpublic void initialise()
throws InitialisationException
InitialisableInitialisationException should be thrown,
causing the Mule instance to shutdown. If the error is recoverable, say by
retrying to connect, a RecoverableException should be thrown.
There is no guarantee that by throwing a Recoverable exception that the Mule
instance will not shut down.initialise in interface InitialisableInitialisationException - if a fatal error occurs causing the Mule instance to shutdownRecoverableException - if an error occurs that can be recovered frompublic void start()
throws MuleException
start in interface StartableMuleExceptionpublic void stop()
throws MuleException
stop in interface StoppableMuleExceptionpublic void dispose()
Disposabledispose in interface Disposablepublic void setFlowConstruct(FlowConstruct flowConstruct)
setFlowConstruct in interface FlowConstructAwarepublic String getName()
NamedObjectgetName in interface NamedObjectpublic void setEndpoint(ImmutableEndpoint endpoint)
setEndpoint in interface EndpointAwarepublic List<MessageProcessor> getMessageProcessors()
getMessageProcessors in interface MessageProcessorChainpublic void addMessageProcessorPathElements(MessageProcessorPathElement pathElement)
MessageProcessorContaineraddMessageProcessorPathElements in interface MessageProcessorContainerpublic void setMessagingExceptionHandler(MessagingExceptionHandler messagingExceptionHandler)
setMessagingExceptionHandler in interface MessagingExceptionHandlerAwarepublic void setMuleContext(MuleContext context)
setMuleContext in interface MuleContextAwareCopyright © 2003–2015 MuleSoft, Inc.. All rights reserved.