package com.atlassian.sal.api.lifecycle;

/**
 * Marks a class that wants to execute code on certain application-level lifecycle stages
 *
 * @since 2.0
 */
public interface LifecycleAware
{
    /**
     * Called when the application has started or has been restored from backup
     */
    void onStart();
}

@@ -129,16 +129,261 @@
  stages%0A
+ * This only works on public components. This means the class must be listed as a component%0A * in the atlassian-plugins.xml and must be marked as public=%22true%22 and include an%0A * interface=%22com.atlassian.sal.api.lifecycle.LifecycleAware%22 section%0A
  *%0A * @s

improve javadoc for lifecycleaware to say what you have to do to make it work