public abstract class AbstractMuleObjectOwner<T> extends Object implements Lifecycle, MuleContextAware, FlowConstructAware, MessagingExceptionHandlerAware
Modifier and Type | Field and Description |
---|---|
protected FlowConstruct |
flowConstruct |
protected MessagingExceptionHandler |
messagingExceptionHandler |
protected MuleContext |
muleContext |
PHASE_NAME
PHASE_NAME
PHASE_NAME
PHASE_NAME
Constructor and Description |
---|
AbstractMuleObjectOwner() |
Modifier and Type | Method and Description |
---|---|
void |
dispose()
A lifecycle method where implementor should free up any resources.
|
FlowConstruct |
getFlowConstruct() |
protected MessagingExceptionHandler |
getMessagingExceptionHandler() |
MuleContext |
getMuleContext() |
protected abstract List<T> |
getOwnedObjects() |
void |
initialise()
Method used to perform any initialisation work.
|
void |
setFlowConstruct(FlowConstruct flowConstruct) |
void |
setMessagingExceptionHandler(MessagingExceptionHandler messagingExceptionHandler) |
void |
setMuleContext(MuleContext context) |
void |
start() |
void |
stop() |
protected MuleContext muleContext
protected FlowConstruct flowConstruct
protected MessagingExceptionHandler messagingExceptionHandler
public void setMuleContext(MuleContext context)
setMuleContext
in interface MuleContextAware
public void setFlowConstruct(FlowConstruct flowConstruct)
setFlowConstruct
in interface FlowConstructAware
public void setMessagingExceptionHandler(MessagingExceptionHandler messagingExceptionHandler)
setMessagingExceptionHandler
in interface MessagingExceptionHandlerAware
public MuleContext getMuleContext()
public FlowConstruct getFlowConstruct()
public void initialise() throws InitialisationException
Initialisable
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.initialise
in interface Initialisable
InitialisationException
- if a fatal error occurs causing the Mule instance to shutdownRecoverableException
- if an error occurs that can be recovered frompublic void dispose()
Disposable
dispose
in interface Disposable
public void start() throws MuleException
start
in interface Startable
MuleException
public void stop() throws MuleException
stop
in interface Stoppable
MuleException
protected MessagingExceptionHandler getMessagingExceptionHandler()
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.