org.mule.module.cxf.config
Class FlowConfiguringMessageProcessor
java.lang.Object
org.mule.module.cxf.config.FlowConfiguringMessageProcessor
- All Implemented Interfaces:
- FlowConstructAware, Disposable, Initialisable, Lifecycle, Startable, Stoppable, InterceptingMessageProcessor, MessageProcessor, MessageSource
public class FlowConfiguringMessageProcessor
- extends Object
- implements FlowConstructAware, Lifecycle, InterceptingMessageProcessor
Wraps a MessageProcessorBuilder
and configures it lazily so it can
be injected with the FlowConstruct
.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FlowConfiguringMessageProcessor
public FlowConfiguringMessageProcessor(MessageProcessorBuilder builder)
setListener
public void setListener(MessageProcessor listener)
- Description copied from interface:
MessageSource
- Set the MessageProcessor listener on a message source which will be invoked
when a message is received or generated.
- Specified by:
setListener
in interface MessageSource
process
public MuleEvent process(MuleEvent event)
throws MuleException
- Description copied from interface:
MessageProcessor
- Invokes the MessageProcessor.
- Specified by:
process
in interface MessageProcessor
- Parameters:
event
- MuleEvent to be processed
- Returns:
- optional response MuleEvent
- Throws:
MuleException
start
public void start()
throws MuleException
- Specified by:
start
in interface Startable
- Throws:
MuleException
setFlowConstruct
public void setFlowConstruct(FlowConstruct flowConstruct)
- Specified by:
setFlowConstruct
in interface FlowConstructAware
dispose
public void dispose()
- Description copied from interface:
Disposable
- A lifecycle method where implementor should free up any resources. If an
exception is thrown it should just be logged and processing should continue.
This method should not throw Runtime exceptions.
- Specified by:
dispose
in interface Disposable
stop
public void stop()
throws MuleException
- Specified by:
stop
in interface Stoppable
- Throws:
MuleException
initialise
public void initialise()
throws InitialisationException
- Description copied from interface:
Initialisable
- Method used to perform any initialisation work. If a fatal error occurs during
initialisation an
InitialisationException
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.
- Specified by:
initialise
in interface Initialisable
- Throws:
InitialisationException
- if a fatal error occurs causing the Mule instance to shutdown
RecoverableException
- if an error occurs that can be recovered from
getWrappedMessageProcessor
public MessageProcessor getWrappedMessageProcessor()
- The MessageProcessor that this class built.
getMessageProcessorBuilder
public MessageProcessorBuilder getMessageProcessorBuilder()
Copyright © 2003-2012 MuleSoft, Inc.. All Rights Reserved.