public interface LifecycleManager
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.Modifier and Type | Method and Description |
---|---|
boolean |
isApplicationSetUp() |
void |
start()
Triggers
LifecycleAware.onStart() on all enabled LifecycleAware components. |
void start()
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.boolean isApplicationSetUp()
true
if application is set up and ready to run, false
otherwise.Copyright © 2015 Atlassian. All rights reserved.