1 package com.atlassian.sal.api.lifecycle;
2
3 /**
4 * Marks a class that wants to execute code on certain application-level lifecycle stages
5 * This only works on public components. This means the class must be listed as a component
6 * in the atlassian-plugins.xml and must be marked as public="true" and include an
7 * interface="com.atlassian.sal.api.lifecycle.LifecycleAware" section
8 *
9 * @since 2.0
10 */
11 public interface LifecycleAware
12 {
13 /**
14 * Called when the application has started or has been restored from backup
15 */
16 void onStart();
17 }