org.mule.processor.chain
Class InterceptingChainLifecycleWrapper
java.lang.Object
org.mule.processor.AbstractInterceptingMessageProcessorBase
org.mule.processor.AbstractInterceptingMessageProcessor
org.mule.processor.chain.AbstractMessageProcessorChain
org.mule.processor.chain.InterceptingChainLifecycleWrapper
- All Implemented Interfaces:
- AnnotatedObject, FlowConstructAware, MuleContextAware, Disposable, Initialisable, Lifecycle, Startable, Stoppable, NamedObject, InterceptingMessageProcessor, MessageProcessor, MessageProcessorChain, MessageSource, EndpointAware
public class InterceptingChainLifecycleWrapper
- extends AbstractMessageProcessorChain
Builder needs to return a composite rather than the first MessageProcessor in the
chain. This is so that if this chain is nested in another chain the next
MessageProcessor in the parent chain is not injected into the first in the nested
chain.
InterceptingChainLifecycleWrapper
public InterceptingChainLifecycleWrapper(MessageProcessorChain chain,
List<MessageProcessor> processors,
String name)
getMessageProcessors
public List<MessageProcessor> getMessageProcessors()
- Specified by:
getMessageProcessors
in interface MessageProcessorChain
- Overrides:
getMessageProcessors
in class AbstractMessageProcessorChain
getName
public String getName()
- Description copied from interface:
NamedObject
- Gets the name of the object
- Specified by:
getName
in interface NamedObject
- Overrides:
getName
in class AbstractMessageProcessorChain
- Returns:
- the name of the object
doProcess
protected MuleEvent doProcess(MuleEvent event)
throws MuleException
- Specified by:
doProcess
in class AbstractMessageProcessorChain
- Throws:
MuleException
setMuleContext
public void setMuleContext(MuleContext context)
- Specified by:
setMuleContext
in interface MuleContextAware
- Overrides:
setMuleContext
in class AbstractInterceptingMessageProcessorBase
process
public MuleEvent process(MuleEvent event)
throws MuleException
- Description copied from interface:
MessageProcessor
- Invokes the MessageProcessor.
- Specified by:
process
in interface MessageProcessor
- Overrides:
process
in class AbstractMessageProcessorChain
- Parameters:
event
- MuleEvent to be processed
- Returns:
- optional response MuleEvent
- Throws:
MuleException
Copyright © 2003-2012 MuleSoft, Inc.. All Rights Reserved.