|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.mule.impl.DefaultLifecycleAdapter
public class 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 | |
---|---|
protected void |
configureNestedRouter()
|
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
UMOException
public DefaultLifecycleAdapter(Object component, UMODescriptor descriptor, UMOEntryPointResolver epResolver) throws UMOException
UMOException
Method Detail |
---|
protected void initialise(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 boolean isStarted()
isStarted
in interface UMOLifecycleAdapter
public boolean isDisposed()
isDisposed
in interface UMOLifecycleAdapter
public UMODescriptor getDescriptor()
getDescriptor
in interface UMOLifecycleAdapter
public void handleException(Object message, 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
RecoverableException
- if an error occurs that can be recovered fromprotected void configureNestedRouter() throws UMOException
UMOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |