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
  • 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

      public void addTrackingDataToRegistry(String trackerName, LifecycleTrackerRegistry registry)
    • addTrackingDataToRegistry

      protected void addTrackingDataToRegistry(String trackerName)
    • getCalledPhases

      public List<String> getCalledPhases()
      Description copied from interface: LifecycleTracker
      Returns a list of the already invoked phases on this tracker, even if the phase failed.
      Specified by:
      getCalledPhases in interface LifecycleTracker
    • initialise

      public void initialise() throws org.mule.runtime.api.lifecycle.InitialisationException
      Specified by:
      initialise in interface org.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:
      start in interface org.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:
      stop in interface org.mule.runtime.api.lifecycle.Stoppable
      Throws:
      org.mule.runtime.api.exception.MuleException
    • dispose

      public void dispose()
      Specified by:
      dispose in interface org.mule.runtime.api.lifecycle.Disposable
    • setMuleContext

      public void setMuleContext(org.mule.runtime.core.api.MuleContext context)
      Specified by:
      setMuleContext in interface org.mule.runtime.core.api.context.MuleContextAware