Package org.mule.tests.internal
Class BaseLifecycleTracker
java.lang.Object
org.mule.tests.internal.BaseLifecycleTracker
- All Implemented Interfaces:
org.mule.runtime.api.lifecycle.Disposable,org.mule.runtime.api.lifecycle.Initialisable,org.mule.runtime.api.lifecycle.Lifecycle,org.mule.runtime.api.lifecycle.Startable,org.mule.runtime.api.lifecycle.Stoppable,org.mule.runtime.core.api.context.MuleContextAware,LifecycleTracker
- Direct Known Subclasses:
LifecycleObject,LifecycleTrackerConfiguration
public class BaseLifecycleTracker
extends Object
implements org.mule.runtime.api.lifecycle.Lifecycle, org.mule.runtime.core.api.context.MuleContextAware, LifecycleTracker
Base implementation of
LifecycleTracker-
Field Summary
Fields inherited from interface org.mule.runtime.api.lifecycle.Disposable
PHASE_NAMEFields inherited from interface org.mule.runtime.api.lifecycle.Initialisable
PHASE_NAMEFields inherited from interface org.mule.runtime.api.lifecycle.Startable
PHASE_NAMEFields inherited from interface org.mule.runtime.api.lifecycle.Stoppable
PHASE_NAME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddTrackingDataToRegistry(String trackerName) voidaddTrackingDataToRegistry(String trackerName, LifecycleTrackerRegistry registry) voiddispose()Returns a list of the already invoked phases on this tracker, even if the phase failed.voidprotected voidprotected voidonInit(org.mule.runtime.core.api.MuleContext muleContext) protected voidonSetMuleContext(org.mule.runtime.core.api.MuleContext muleContext) protected voidonStart()protected voidonStop()voidsetMuleContext(org.mule.runtime.core.api.MuleContext context) voidstart()voidstop()
-
Constructor Details
-
BaseLifecycleTracker
public BaseLifecycleTracker(boolean shouldCheck)
-
-
Method Details
-
onInit
protected void onInit(org.mule.runtime.core.api.MuleContext muleContext) throws org.mule.runtime.api.lifecycle.InitialisationException - Throws:
org.mule.runtime.api.lifecycle.InitialisationException
-
onStart
protected void onStart() throws org.mule.runtime.api.exception.MuleException- Throws:
org.mule.runtime.api.exception.MuleException
-
onStop
protected void onStop() throws org.mule.runtime.api.exception.MuleException- Throws:
org.mule.runtime.api.exception.MuleException
-
onDispose
protected void onDispose() -
onSetMuleContext
protected void onSetMuleContext(org.mule.runtime.core.api.MuleContext muleContext) -
addTrackingDataToRegistry
-
addTrackingDataToRegistry
-
getCalledPhases
Description copied from interface:LifecycleTrackerReturns a list of the already invoked phases on this tracker, even if the phase failed.- Specified by:
getCalledPhasesin interfaceLifecycleTracker
-
initialise
public void initialise() throws org.mule.runtime.api.lifecycle.InitialisationException- Specified by:
initialisein interfaceorg.mule.runtime.api.lifecycle.Initialisable- Throws:
org.mule.runtime.api.lifecycle.InitialisationException
-
start
public void start() throws org.mule.runtime.api.exception.MuleException- Specified by:
startin interfaceorg.mule.runtime.api.lifecycle.Startable- Throws:
org.mule.runtime.api.exception.MuleException
-
stop
public void stop() throws org.mule.runtime.api.exception.MuleException- Specified by:
stopin interfaceorg.mule.runtime.api.lifecycle.Stoppable- Throws:
org.mule.runtime.api.exception.MuleException
-
dispose
public void dispose()- Specified by:
disposein interfaceorg.mule.runtime.api.lifecycle.Disposable
-
setMuleContext
public void setMuleContext(org.mule.runtime.core.api.MuleContext context) - Specified by:
setMuleContextin interfaceorg.mule.runtime.core.api.context.MuleContextAware
-