com.atlassian.plugin
Interface SplitStartupPluginSystemLifecycle

All Superinterfaces:
PluginSystemLifecycle
All Known Implementing Classes:
DefaultPluginManager, DefaultPluginManager

@ExperimentalApi
public interface SplitStartupPluginSystemLifecycle
extends PluginSystemLifecycle

Augments the life-cycle of the plugin system with the ability to split PluginSystemLifecycle.init() for two phase startup.

Since:
3.2.0

Method Summary
 void earlyStartup()
          Perform the first part of startup.
 void lateStartup()
          Perform the second part of startup.
 
Methods inherited from interface com.atlassian.plugin.PluginSystemLifecycle
init, shutdown, warmRestart
 

Method Detail

earlyStartup

void earlyStartup()
                  throws PluginParseException,
                         NotificationException
Perform the first part of startup. This initializes the plugin system, and installs and enables early plugins.

Throws:
PluginParseException - If parsing the plugins failed.
IllegalStateException - if already initialized or already in the process of initialization.
NotificationException - If any of the Event Listeners throw an exception on the Framework startup events.
See Also:
PluginSystemLifecycle.init()

lateStartup

void lateStartup()
                 throws PluginParseException,
                        NotificationException
Perform the second part of startup. This installs and enables late plugins, and performs any final validation steps. This may only be called after earlyStartup(), and calling both earlyStartup and lateStartup is equivalent to calling PluginSystemLifecycle.init().

Throws:
PluginParseException - If parsing the plugins failed.
IllegalStateException - if already initialized or already in the process of initialization.
NotificationException - If any of the Event Listeners throw an exception on the Framework startup events.
See Also:
PluginSystemLifecycle.init()


Copyright © 2015 Atlassian. All rights reserved.