|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.mule.impl.DefaultLifecycleAdapter
DefaultLifecycleAdapter
provides lifecycle methods for all
Mule managed components. It's possible to plugin custom lifecycle adapters,
this can provide additional lifecycle methods triggered by an external source.
Field Summary | |
protected static Log |
logger
logger used by this class |
Constructor Summary | |
DefaultLifecycleAdapter(java.lang.Object component,
UMODescriptor descriptor)
|
|
DefaultLifecycleAdapter(java.lang.Object component,
UMODescriptor descriptor,
UMOEntryPointResolver epResolver)
|
Method Summary | |
void |
dispose()
A lifecycle method where implementor should fee up any resources If an exception is thrown it should just be logged and processing should continue. |
UMODescriptor |
getDescriptor()
|
void |
handleException(java.lang.Object message,
java.lang.Exception e)
|
void |
initialise()
Method used to perform any initialisation work. |
protected void |
initialise(java.lang.Object component,
UMODescriptor descriptor,
UMOEntryPointResolver epDiscovery)
|
UMOMessage |
intercept(Invocation invocation)
Invoked by the previous interceptor in the chain |
boolean |
isDisposed()
|
boolean |
isStarted()
|
java.lang.Object |
onCall(UMOEvent event)
|
void |
start()
|
void |
stop()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static transient Log logger
Constructor Detail |
public DefaultLifecycleAdapter(java.lang.Object component, UMODescriptor descriptor) throws UMOException
public DefaultLifecycleAdapter(java.lang.Object component, UMODescriptor descriptor, UMOEntryPointResolver epResolver) throws UMOException
Method Detail |
protected void initialise(java.lang.Object component, UMODescriptor descriptor, UMOEntryPointResolver epDiscovery) throws UMOException
UMOException
public void start() throws UMOException
start
in interface Startable
UMOException
public void stop() throws UMOException
stop
in interface Stoppable
UMOException
public void dispose()
Disposable
dispose
in interface Disposable
public java.lang.Object onCall(UMOEvent event) throws UMOException
onCall
in interface UMOLifecycleAdapter
UMOException
public boolean isStarted()
isStarted
in interface UMOLifecycleAdapter
public boolean isDisposed()
isDisposed
in interface UMOLifecycleAdapter
public UMODescriptor getDescriptor()
getDescriptor
in interface UMOLifecycleAdapter
public void handleException(java.lang.Object message, java.lang.Exception e)
public UMOMessage intercept(Invocation invocation) throws UMOException
UMOInterceptor
intercept
in interface UMOInterceptor
invocation
- the invocation containing info about the current message and component
UMOException
- if the invocation failspublic 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
shutdown
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |