org.mule.service
Class ServiceCompositeMessageSource
java.lang.Object
org.mule.source.StartableCompositeMessageSource
org.mule.service.ServiceCompositeMessageSource
- All Implemented Interfaces:
- FlowConstructAware, MuleContextAware, Disposable, Initialisable, Lifecycle, Startable, Stoppable, RouterStatisticsRecorder, CompositeMessageSource, MessageSource
- Direct Known Subclasses:
- ServiceAsyncReplyCompositeMessageSource
public class ServiceCompositeMessageSource
- extends StartableCompositeMessageSource
- implements Initialisable, RouterStatisticsRecorder
Extension of StartableCompositeMessageSource
which adds message processors between the composite
source and the target listener
processors
protected List<MessageProcessor> processors
statistics
protected RouterStatistics statistics
endpoints
protected List<InboundEndpoint> endpoints
catchAllStrategy
protected MessageProcessor catchAllStrategy
ServiceCompositeMessageSource
public ServiceCompositeMessageSource()
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
- Overrides:
initialise
in class StartableCompositeMessageSource
- Throws:
InitialisationException
- if a fatal error occurs causing the Mule instance to shutdown
RecoverableException
- if an error occurs that can be recovered from
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
- Overrides:
dispose
in class StartableCompositeMessageSource
createMessageProcessorChain
protected void createMessageProcessorChain()
throws MuleException
- Throws:
MuleException
start
public void start()
throws MuleException
- Specified by:
start
in interface Startable
- Overrides:
start
in class StartableCompositeMessageSource
- Throws:
MuleException
stop
public void stop()
throws MuleException
- Specified by:
stop
in interface Stoppable
- Overrides:
stop
in class StartableCompositeMessageSource
- Throws:
MuleException
setMessageProcessors
public void setMessageProcessors(List<MessageProcessor> processors)
addMessageProcessor
public void addMessageProcessor(MessageProcessor processor)
addSource
public void addSource(MessageSource source)
throws MuleException
- Specified by:
addSource
in interface CompositeMessageSource
- Overrides:
addSource
in class StartableCompositeMessageSource
- Throws:
MuleException
removeSource
public void removeSource(MessageSource source)
throws MuleException
- Specified by:
removeSource
in interface CompositeMessageSource
- Overrides:
removeSource
in class StartableCompositeMessageSource
- Throws:
MuleException
setMessageSources
public void setMessageSources(List<MessageSource> sources)
throws MuleException
- Overrides:
setMessageSources
in class StartableCompositeMessageSource
- Throws:
MuleException
getEndpoints
public List<InboundEndpoint> getEndpoints()
getMessageProcessors
public List<MessageProcessor> getMessageProcessors()
getRouterStatistics
public RouterStatistics getRouterStatistics()
setRouterStatistics
public void setRouterStatistics(RouterStatistics statistics)
- Specified by:
setRouterStatistics
in interface RouterStatisticsRecorder
getEndpoint
public InboundEndpoint getEndpoint(String name)
setCatchAllStrategy
public void setCatchAllStrategy(MessageProcessor catchAllStrategy)
getCatchAllStrategy
public MessageProcessor getCatchAllStrategy()
Copyright © 2003-2012 MuleSoft, Inc.. All Rights Reserved.