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
PHASE_NAME
PHASE_NAME
PHASE_NAME
PHASE_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, setLifecycleFlags
public NullLifecycleAdapter(Object componentObject, JavaComponent component, FlowConstruct flowConstruct, EntryPointResolverSet entryPointResolver, MuleContext muleContext) throws MuleException
MuleException
public void start() throws MuleException
DefaultComponentLifecycleAdapter
Startable
interface. NOT: It is up to component
implementations to ensure their implementation of start() is thread-safe.start
in interface Startable
start
in class DefaultComponentLifecycleAdapter
MuleException
public void stop() throws MuleException
DefaultComponentLifecycleAdapter
Stoppable
interface. NOT: It is up to component
implementations to ensure their implementation of stop() is thread-safe.stop
in interface Stoppable
stop
in class DefaultComponentLifecycleAdapter
MuleException
public void dispose()
DefaultComponentLifecycleAdapter
Disposable
interface. NOT: It is up to component
implementations to ensure their implementation of dispose() is thread-safe.dispose
in interface Disposable
dispose
in class DefaultComponentLifecycleAdapter
public boolean isStarted()
isStarted
in interface LifecycleAdapter
isStarted
in class DefaultComponentLifecycleAdapter
public boolean isDisposed()
isDisposed
in interface LifecycleAdapter
isDisposed
in class DefaultComponentLifecycleAdapter
public void initialise() throws InitialisationException
DefaultComponentLifecycleAdapter
Initialisable
interface.
NOTE: It is up to component implementations to ensure their implementation of
initialise()
is thread-safe.initialise
in interface Initialisable
initialise
in class DefaultComponentLifecycleAdapter
InitialisationException
- if a fatal error occurs causing the Mule instance to shutdownRecoverableException
- if an error occurs that can be recovered fromCopyright © 2003–2016 MuleSoft, Inc.. All rights reserved.