Package com.atlassian.sal.api.lifecycle
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 Summary
Modifier and TypeMethodDescriptionbooleanvoidstart()TriggersLifecycleAware.onStart()on all enabledLifecycleAwarecomponents.
-
Method Details
-
start
void start()TriggersLifecycleAware.onStart()on all enabledLifecycleAwarecomponents. 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:
trueif application is set up and ready to run,falseotherwise.
-