Interface LifecycleManager


public interface LifecycleManager
Triggers lifecycle events on LifecycleAware components.

Implementation note: Invoking the start() method on startup and restore satisfies the two of the lifecycle requirements outlined on the LifecycleAware javadoc. The third (starting components that are enabled sometime after the host application starts up) can be done using an OSGi ServiceListener.

See com.atlassian.sal.core.lifecycle.DefaultLifecycleManager.LifecycleAwareServiceListener in sal-core for an example.

Since:
2.0
  • Method Details

    • start

      void start()
      Triggers LifecycleAware.onStart() on all enabled LifecycleAware components. This method can be called multiple times but will only start components once and only once the plugin framework has started.
    • isApplicationSetUp

      boolean isApplicationSetUp()
      Returns:
      true if application is set up and ready to run, false otherwise.