org.mule.impl
Class DefaultLifecycleAdapter
java.lang.Object
org.mule.impl.DefaultLifecycleAdapter
- All Implemented Interfaces:
- Disposable, Initialisable, Lifecycle, Startable, Stoppable, UMOInterceptor, UMOLifecycleAdapter
- public class DefaultLifecycleAdapter
- extends java.lang.Object
- implements UMOLifecycleAdapter
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.
- Version:
- $Revision: 1.3 $
- Author:
- Ross Mason
Field Summary |
protected static Log |
logger
logger used by this class |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
protected static transient Log logger
- logger used by this class
DefaultLifecycleAdapter
public DefaultLifecycleAdapter(java.lang.Object component,
UMODescriptor descriptor)
throws UMOException
DefaultLifecycleAdapter
public DefaultLifecycleAdapter(java.lang.Object component,
UMODescriptor descriptor,
UMOEntryPointResolver epResolver)
throws UMOException
initialise
protected void initialise(java.lang.Object component,
UMODescriptor descriptor,
UMOEntryPointResolver epDiscovery)
throws UMOException
- Throws:
UMOException
start
public void start()
throws UMOException
- Specified by:
start
in interface Startable
- Throws:
UMOException
stop
public void stop()
throws UMOException
- Specified by:
stop
in interface Stoppable
- Throws:
UMOException
dispose
public void dispose()
throws UMOException
- Specified by:
dispose
in interface Disposable
- Throws:
UMOException
onCall
public java.lang.Object onCall(UMOEvent event)
throws UMOException
- Specified by:
onCall
in interface UMOLifecycleAdapter
- Throws:
UMOException
isStarted
public boolean isStarted()
- Specified by:
isStarted
in interface UMOLifecycleAdapter
- Returns:
isDisposed
public boolean isDisposed()
- Specified by:
isDisposed
in interface UMOLifecycleAdapter
- Returns:
getDescriptor
public UMODescriptor getDescriptor()
- Specified by:
getDescriptor
in interface UMOLifecycleAdapter
handleException
public void handleException(java.lang.Object message,
java.lang.Throwable t)
intercept
public UMOMessage intercept(Invocation invocation)
throws UMOException
- Description copied from interface:
UMOInterceptor
- Invoked by the previous interceptor in the chain
- Specified by:
intercept
in interface UMOInterceptor
- Parameters:
invocation
- the invocation containing info about the current message and component
- Returns:
- A result message that may have been altered by this invocation
- Throws:
UMOException
- if the invocation fails
initialise
public void initialise()
throws InitialisationException
- Specified by:
initialise
in interface Initialisable
- Throws:
InitialisationException
Copyright © 2003-2005 SymphonySoft Limited. All Rights Reserved.