com.atlassian.sal.api.lifecycle
Interface LifecycleManager

All Known Implementing Classes:
DefaultLifecycleManager

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) is typically achieved by listening for OSGi bind events. See DefaultLifecycleManager#onBind() in sal-core for an example.

Since:
2.0

Method Summary
 boolean isApplicationSetUp()
           
 void start()
          Triggers LifecycleAware.onStart() on all enabled LifecycleAware components.
 

Method Detail

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.


Copyright © 2015 Atlassian. All rights reserved.