public class LifecycleSensingMessageProcessor extends AbstractComponent implements Lifecycle, Processor
ReactiveProcessor.ProcessingType
LOCATION_KEY, ROOT_CONTAINER_NAME_KEY
PHASE_NAME
PHASE_NAME
PHASE_NAME
PHASE_NAME
ANNOTATIONS_PROPERTY_NAME
Constructor and Description |
---|
LifecycleSensingMessageProcessor() |
Modifier and Type | Method and Description |
---|---|
void |
dispose()
A lifecycle method where implementor should free up any resources.
|
List<LifecycleAction> |
getLifecycleActions() |
LifecycleSensingObjectFactory |
getObjectFactory() |
void |
initialise()
Method used to perform any initialisation work.
|
CoreEvent |
process(CoreEvent event)
Invokes the MessageProcessor.
|
void |
setObjectFactory(LifecycleSensingObjectFactory objectFactory) |
void |
start() |
void |
stop() |
getAnnotation, getAnnotations, getLocation, getRootContainerLocation, setAnnotations
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getProcessingType
public void setObjectFactory(LifecycleSensingObjectFactory objectFactory)
public void dispose()
Disposable
dispose
in interface Disposable
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 start() throws MuleException
start
in interface Startable
MuleException
public void stop() throws MuleException
stop
in interface Stoppable
MuleException
public List<LifecycleAction> getLifecycleActions()
public LifecycleSensingObjectFactory getObjectFactory()
public CoreEvent process(CoreEvent event) throws MuleException
Processor
process
in interface Processor
event
- MuleEvent to be processedMuleException
Copyright © 2018. All rights reserved.