|
|||||||||||
| 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(Object component,
UMODescriptor descriptor)
|
|
DefaultLifecycleAdapter(Object component,
UMODescriptor descriptor,
UMOEntryPointResolver epResolver)
|
|
| Method Summary | |
void |
dispose()
A lifecycle method where implementor should free up any resources. |
UMODescriptor |
getDescriptor()
|
void |
handleException(Object message,
Exception e)
|
void |
initialise()
Method used to perform any initialisation work. |
protected void |
initialise(Object component,
UMODescriptor descriptor,
UMOEntryPointResolver epDiscovery)
|
UMOMessage |
intercept(Invocation invocation)
Invoked by the previous interceptor in the chain |
boolean |
isDisposed()
|
boolean |
isStarted()
|
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 final Log logger
| Constructor Detail |
public DefaultLifecycleAdapter(Object component,
UMODescriptor descriptor)
throws UMOException
public DefaultLifecycleAdapter(Object component,
UMODescriptor descriptor,
UMOEntryPointResolver epResolver)
throws UMOException
| Method Detail |
protected void initialise(Object component,
UMODescriptor descriptor,
UMOEntryPointResolver epDiscovery)
throws UMOException
UMOException
public void start()
throws UMOException
start in interface StartableUMOException
public void stop()
throws UMOException
stop in interface StoppableUMOExceptionpublic void dispose()
Disposable
dispose in interface Disposablepublic boolean isStarted()
isStarted in interface UMOLifecycleAdapterpublic boolean isDisposed()
isDisposed in interface UMOLifecycleAdapterpublic UMODescriptor getDescriptor()
getDescriptor in interface UMOLifecycleAdapter
public void handleException(Object message,
Exception e)
public UMOMessage intercept(Invocation invocation)
throws UMOException
UMOInterceptor
intercept in interface UMOInterceptorinvocation - the invocation containing info about the current message and
component
UMOException - if the invocation fails
public void initialise()
throws InitialisationException
InitialisableInitialisationException 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 InitialisableInitialisationException - 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 | ||||||||||