public class JiraPluginManager extends com.atlassian.plugin.manager.DefaultPluginManager implements Startable, ClusterAwareJiraPluginController
Constructor and Description |
---|
JiraPluginManager(com.atlassian.plugin.PluginAccessor pluginAccessor,
com.atlassian.plugin.PluginRegistry.ReadWrite pluginRegistry,
com.atlassian.plugin.manager.PluginPersistentStateStore store,
PluginLoaderFactory pluginLoaderFactory,
com.atlassian.plugin.ModuleDescriptorFactory moduleDescriptorFactory,
PluginVersionStore pluginVersionStore,
com.atlassian.plugin.event.PluginEventManager pluginEventManager,
PluginPath pluginPath,
JiraPluginSystemListener jiraPluginSystemListener,
JiraFailedPluginTracker failedPluginTracker,
com.atlassian.event.api.EventPublisher eventPublisher,
com.atlassian.plugin.manager.SafeModeManager safeModeManager,
ReindexMessageListener reindexMessageListener,
PluginVersionsChangeAnalyser pluginVersionsChangeAnalyser) |
Modifier and Type | Method and Description |
---|---|
protected void |
addPlugins(com.atlassian.plugin.loaders.PluginLoader loader,
Collection<com.atlassian.plugin.Plugin> pluginsToInstall) |
void |
disablePlugin(String key) |
void |
disablePluginLocalOnly(String key) |
void |
disablePluginModule(String completeKey) |
void |
disablePluginModuleLocalOnly(String completeKey) |
void |
disablePluginWithoutPersisting(String key) |
void |
earlyStartup() |
void |
enablePluginModule(String completeKey) |
void |
enablePluginModuleLocalOnly(String completeKey) |
void |
enablePlugins(String... keys) |
void |
enablePluginsLocalOnly(String... keys) |
String |
installPluginLocalOnly(com.atlassian.plugin.PluginArtifact pluginArtifact) |
Set<String> |
installPlugins(com.atlassian.plugin.PluginArtifact... pluginArtifacts) |
Set<String> |
installPluginsLocalOnly(com.atlassian.plugin.PluginArtifact... pluginArtifacts) |
void |
lateStartup() |
void |
onPluginDisabledEvent(com.atlassian.plugin.event.events.PluginDisabledEvent disabledEvent) |
void |
onPluginEnabledEvent(com.atlassian.plugin.event.events.PluginEnabledEvent enabledEvent) |
void |
onPluginUninstalledEvent(com.atlassian.plugin.event.events.PluginUninstalledEvent uninstalledEvent) |
void |
onPluginUpgradedEvent(com.atlassian.plugin.event.events.PluginUpgradedEvent upgradedEvent) |
void |
start()
This method will be called after the plugin system is fully initialised and all components added to the
dependency injection framework.
|
void |
uninstall(com.atlassian.plugin.Plugin plugin) |
void |
uninstallLocalOnly(com.atlassian.plugin.Plugin plugin) |
addDynamicModule, disablePluginInternal, getClassLoader, getDynamicModules, getDynamicPluginClass, getDynamicResourceAsStream, getEnabledModuleDescriptorsByClass, getEnabledModulesByClass, getEnabledPlugin, getEnabledPluginModule, getEnabledPlugins, getLateStartupEnableRetryProperty, getMinimumPluginVersionsFileProperty, getModuleDescriptors, getModules, getPlugin, getPluginModule, getPluginRestartState, getPlugins, getPlugins, getStartupOverrideFileProperty, getState, init, isPluginEnabled, isPluginModuleEnabled, isSystemPlugin, newBuilder, notifyModuleDisabled, notifyModuleEnabled, notifyUninstallPlugin, onPluginContainerUnavailable, onPluginModuleAvailable, onPluginModuleUnavailable, onPluginRefresh, onUpdateRequiresRestartState, removeDynamicModule, removeStateFromStore, revertRestartRequiredChange, scanForNewPlugins, setPluginInstaller, shutdown, uninstallNoEvent, uninstallPlugins, unloadPlugin, updatePlugin, warmRestart
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public JiraPluginManager(com.atlassian.plugin.PluginAccessor pluginAccessor, com.atlassian.plugin.PluginRegistry.ReadWrite pluginRegistry, com.atlassian.plugin.manager.PluginPersistentStateStore store, PluginLoaderFactory pluginLoaderFactory, com.atlassian.plugin.ModuleDescriptorFactory moduleDescriptorFactory, PluginVersionStore pluginVersionStore, com.atlassian.plugin.event.PluginEventManager pluginEventManager, PluginPath pluginPath, JiraPluginSystemListener jiraPluginSystemListener, JiraFailedPluginTracker failedPluginTracker, com.atlassian.event.api.EventPublisher eventPublisher, com.atlassian.plugin.manager.SafeModeManager safeModeManager, ReindexMessageListener reindexMessageListener, PluginVersionsChangeAnalyser pluginVersionsChangeAnalyser)
public void start() throws com.atlassian.plugin.PluginException
Startable
public void earlyStartup() throws com.atlassian.plugin.PluginParseException, com.atlassian.plugin.event.NotificationException
earlyStartup
in interface com.atlassian.plugin.SplitStartupPluginSystemLifecycle
earlyStartup
in class com.atlassian.plugin.manager.DefaultPluginManager
com.atlassian.plugin.PluginParseException
com.atlassian.plugin.event.NotificationException
public void lateStartup()
lateStartup
in interface com.atlassian.plugin.SplitStartupPluginSystemLifecycle
lateStartup
in class com.atlassian.plugin.manager.DefaultPluginManager
public void enablePlugins(String... keys)
enablePlugins
in interface com.atlassian.plugin.PluginController
enablePlugins
in class com.atlassian.plugin.manager.DefaultPluginManager
public void enablePluginsLocalOnly(String... keys)
enablePluginsLocalOnly
in interface ClusterAwareJiraPluginController
protected void addPlugins(com.atlassian.plugin.loaders.PluginLoader loader, Collection<com.atlassian.plugin.Plugin> pluginsToInstall) throws com.atlassian.plugin.PluginParseException
addPlugins
in class com.atlassian.plugin.manager.DefaultPluginManager
com.atlassian.plugin.PluginParseException
public String installPluginLocalOnly(com.atlassian.plugin.PluginArtifact pluginArtifact) throws com.atlassian.plugin.PluginParseException
installPluginLocalOnly
in interface ClusterAwareJiraPluginController
com.atlassian.plugin.PluginParseException
public Set<String> installPlugins(com.atlassian.plugin.PluginArtifact... pluginArtifacts) throws com.atlassian.plugin.PluginParseException
installPlugins
in interface com.atlassian.plugin.PluginController
installPlugins
in class com.atlassian.plugin.manager.DefaultPluginManager
com.atlassian.plugin.PluginParseException
public Set<String> installPluginsLocalOnly(com.atlassian.plugin.PluginArtifact... pluginArtifacts) throws com.atlassian.plugin.PluginParseException
installPluginsLocalOnly
in interface ClusterAwareJiraPluginController
com.atlassian.plugin.PluginParseException
public void onPluginEnabledEvent(com.atlassian.plugin.event.events.PluginEnabledEvent enabledEvent)
public void onPluginUninstalledEvent(com.atlassian.plugin.event.events.PluginUninstalledEvent uninstalledEvent)
public void onPluginDisabledEvent(com.atlassian.plugin.event.events.PluginDisabledEvent disabledEvent)
public void onPluginUpgradedEvent(com.atlassian.plugin.event.events.PluginUpgradedEvent upgradedEvent)
public void uninstall(com.atlassian.plugin.Plugin plugin) throws com.atlassian.plugin.PluginException
uninstall
in interface com.atlassian.plugin.PluginController
uninstall
in class com.atlassian.plugin.manager.DefaultPluginManager
com.atlassian.plugin.PluginException
public void uninstallLocalOnly(com.atlassian.plugin.Plugin plugin) throws com.atlassian.plugin.PluginException
uninstallLocalOnly
in interface ClusterAwareJiraPluginController
com.atlassian.plugin.PluginException
public void disablePlugin(String key)
disablePlugin
in interface com.atlassian.plugin.PluginController
disablePlugin
in class com.atlassian.plugin.manager.DefaultPluginManager
public void disablePluginLocalOnly(String key)
disablePluginLocalOnly
in interface ClusterAwareJiraPluginController
public void disablePluginWithoutPersisting(String key)
disablePluginWithoutPersisting
in interface com.atlassian.plugin.PluginController
disablePluginWithoutPersisting
in class com.atlassian.plugin.manager.DefaultPluginManager
public void disablePluginModule(String completeKey)
disablePluginModule
in interface com.atlassian.plugin.PluginController
disablePluginModule
in class com.atlassian.plugin.manager.DefaultPluginManager
public void disablePluginModuleLocalOnly(String completeKey)
disablePluginModuleLocalOnly
in interface ClusterAwareJiraPluginController
public void enablePluginModule(String completeKey)
enablePluginModule
in interface com.atlassian.plugin.PluginController
enablePluginModule
in class com.atlassian.plugin.manager.DefaultPluginManager
public void enablePluginModuleLocalOnly(String completeKey)
enablePluginModuleLocalOnly
in interface ClusterAwareJiraPluginController
Copyright © 2002-2024 Atlassian. All Rights Reserved.