public class NullLifecycleAdapter extends DefaultComponentLifecycleAdapter
NullLifecycleAdapter is a lifecycle adaptor implementation that
performs no Mule lifecycle propagation to Mule service component implementations.
This can be used when the service component implementation is looked up from a
container and therefore has it's own lifecycle management.component, componentObject, disposeMethod, entryPointResolver, flowConstruct, initMethod, isDisposable, isInitialisable, isStartable, isStoppable, logger, muleContextPHASE_NAMEPHASE_NAMEPHASE_NAMEPHASE_NAME| Constructor and Description |
|---|
NullLifecycleAdapter(Object componentObject,
JavaComponent component,
FlowConstruct flowConstruct,
EntryPointResolverSet entryPointResolver,
MuleContext muleContext) |
| Modifier and Type | Method and Description |
|---|---|
void |
dispose()
Propagates dispose() life-cycle to component object implementations if they
implement the mule
Disposable interface. |
void |
initialise()
Propagates initialise() life-cycle to component object implementations if they
implement the mule
Initialisable interface. |
boolean |
isDisposed() |
boolean |
isStarted() |
void |
start()
Propagates start() life-cycle to component object implementations if they
implement the mule
Startable interface. |
void |
stop()
Propagates stop() life-cycle to component object implementations if they
implement the mule
Stoppable interface. |
findDisposeMethod, findInitMethod, invoke, setLifecycleFlagspublic NullLifecycleAdapter(Object componentObject, JavaComponent component, FlowConstruct flowConstruct, EntryPointResolverSet entryPointResolver, MuleContext muleContext) throws MuleException
MuleExceptionpublic void start()
throws MuleException
DefaultComponentLifecycleAdapterStartable interface. NOT: It is up to component
implementations to ensure their implementation of start() is thread-safe.start in interface Startablestart in class DefaultComponentLifecycleAdapterMuleExceptionpublic void stop()
throws MuleException
DefaultComponentLifecycleAdapterStoppable interface. NOT: It is up to component
implementations to ensure their implementation of stop() is thread-safe.stop in interface Stoppablestop in class DefaultComponentLifecycleAdapterMuleExceptionpublic void dispose()
DefaultComponentLifecycleAdapterDisposable interface. NOT: It is up to component
implementations to ensure their implementation of dispose() is thread-safe.dispose in interface Disposabledispose in class DefaultComponentLifecycleAdapterpublic boolean isStarted()
isStarted in interface LifecycleAdapterisStarted in class DefaultComponentLifecycleAdapterpublic boolean isDisposed()
isDisposed in interface LifecycleAdapterisDisposed in class DefaultComponentLifecycleAdapterpublic void initialise()
throws InitialisationException
DefaultComponentLifecycleAdapterInitialisable interface.
NOTE: It is up to component implementations to ensure their implementation of
initialise() is thread-safe.initialise in interface Initialisableinitialise in class DefaultComponentLifecycleAdapterInitialisationException - if a fatal error occurs causing the Mule instance to shutdownRecoverableException - if an error occurs that can be recovered fromCopyright © 2003–2015 MuleSoft, Inc.. All rights reserved.