1 package com.atlassian.sal.api.lifecycle;
2
3 /**
4 * Interface to be used to trigger lifecycle events
5 *
6 * @since 2.0
7 */
8 public interface LifecycleManager
9 {
10 /**
11 * Triggers a start lifecycle event once and only once. This method can be called multiple times but will only fire
12 * an onStart event once and only when application is already set up.
13 */
14 void start();
15
16 /**
17 * @return true if application is set up and ready to run
18 */
19 boolean isApplicationSetUp();
20 }