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, muleContext| 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 org.mule.runtime.api.exception.MuleException
org.mule.runtime.api.exception.MuleExceptionpublic void start()
throws org.mule.runtime.api.exception.MuleException
DefaultComponentLifecycleAdapterStartable interface.
NOT: It is up to component implementations to ensure their implementation of start() is thread-safe.start in interface org.mule.runtime.api.lifecycle.Startablestart in class DefaultComponentLifecycleAdapterorg.mule.runtime.api.exception.MuleExceptionpublic void stop()
throws org.mule.runtime.api.exception.MuleException
DefaultComponentLifecycleAdapterStoppable interface. NOT:
It is up to component implementations to ensure their implementation of stop() is thread-safe.stop in interface org.mule.runtime.api.lifecycle.Stoppablestop in class DefaultComponentLifecycleAdapterorg.mule.runtime.api.exception.MuleExceptionpublic void dispose()
DefaultComponentLifecycleAdapterDisposable interface.
NOT: It is up to component implementations to ensure their implementation of dispose() is thread-safe.dispose in interface org.mule.runtime.api.lifecycle.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 org.mule.runtime.api.lifecycle.InitialisationException
DefaultComponentLifecycleAdapterInitialisable
interface.
NOTE: It is up to component implementations to ensure their implementation of initialise() is
thread-safe.initialise in interface org.mule.runtime.api.lifecycle.Initialisableinitialise in class DefaultComponentLifecycleAdapterorg.mule.runtime.api.lifecycle.InitialisationExceptionCopyright © 2003–2017 MuleSoft, Inc.. All rights reserved.