com.atlassian.plugin
Interface PluginSystemLifecycle

All Known Subinterfaces:
PluginManager, SplitStartupPluginSystemLifecycle
All Known Implementing Classes:
DefaultPluginManager, DefaultPluginManager

public interface PluginSystemLifecycle

Controls the life-cycle of the plugin system.

Since:
2.2.0

Method Summary
 void init()
          Initialise the plugin system.
 void shutdown()
          Destroys the plugin manager.
 void warmRestart()
          Restart all plugins by disabling and enabling them in the order they were loaded (by plugin loader)
 

Method Detail

init

void init()
          throws PluginParseException,
                 NotificationException
Initialise the plugin system. This must be called before anything else.

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.

shutdown

void shutdown()
Destroys the plugin manager. This must be called when getting rid of the manager instance and you plan to create another one. Failure to do so will leave around significant resources including threads and memory usage and can interfere with a web-application being correctly shutdown.

Since:
2.0.0

warmRestart

void warmRestart()
Restart all plugins by disabling and enabling them in the order they were loaded (by plugin loader)

Since:
2.3.0


Copyright © 2015 Atlassian. All rights reserved.