public class SharedSource extends AbstractComponent implements MessageSource, Initialisable, MuleContextAware
SharedConfig
.MessageSource.BackPressureStrategy
LOCATION_KEY, ROOT_CONTAINER_NAME_KEY
ANNOTATIONS_PROPERTY_NAME
PHASE_NAME
Constructor and Description |
---|
SharedSource() |
Modifier and Type | Method and Description |
---|---|
SharedConfig |
getConfig() |
void |
initialise()
Method used to perform any initialisation work.
|
void |
setConfig(SharedConfig config) |
void |
setListener(Processor listener)
Set the
Processor listener on a message source which will be invoked when a message is received or generated. |
void |
setMuleContext(MuleContext context) |
getAnnotation, getAnnotations, getLocation, getRootContainerLocation, setAnnotations
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getBackPressureStrategy
getAnnotation, getAnnotations, getLocation, getRootContainerLocation, setAnnotations
public void setMuleContext(MuleContext context)
setMuleContext
in interface MuleContextAware
context
- the Mule node.public void initialise() throws InitialisationException
Initialisable
InitialisationException
should be thrown.
In case that the Initialisable.initialise()
method execution fails then mule will call the Disposable.dispose()
method if
the class also implements Disposable
allowing the object to dispose any allocated resource during
Initialisable.initialise()
initialise
in interface Initialisable
InitialisationException
- if a fatal error occurs causing the Mule instance to shutdownDisposable
public void setConfig(SharedConfig config)
public SharedConfig getConfig()
public void setListener(Processor listener)
MessageSource
Processor
listener on a message source which will be invoked when a message is received or generated.setListener
in interface MessageSource
Copyright © 2018. All rights reserved.