public class CrowdPluginManager extends com.atlassian.plugin.manager.DefaultPluginManager implements ClusterAwarePluginController, com.atlassian.plugin.PluginAccessor, org.springframework.beans.factory.DisposableBean
Constructor and Description |
---|
CrowdPluginManager(com.atlassian.plugin.manager.PluginPersistentStateStore pluginStateStore,
List pluginLoaders,
com.atlassian.plugin.ModuleDescriptorFactory moduleDescriptorFactory,
com.atlassian.plugin.event.PluginEventManager pluginEventManager,
PluginDirectoryLocator pluginDirectoryLocator,
com.atlassian.event.api.EventPublisher eventPublisher,
PluginChangeMessageSender pluginChangeMessageSender)
If you pass a String in the list of pluginLoaders, it will automagically be converted into a SinglePluginLoader
for a file with that string's name.
|
Modifier and Type | Method and Description |
---|---|
void |
destroy() |
void |
disablePlugin(String key) |
void |
disablePluginLocalOnly(String key)
Equivalent of
PluginController.disablePlugin(String) , but will only affect the current node. |
void |
disablePluginModule(String completeKey) |
void |
disablePluginModuleLocalOnly(String completeKey)
Equivalent of
PluginController.disablePluginModule(String) , but will only affect the current node. |
void |
enablePluginModule(String completeKey) |
void |
enablePluginModuleLocalOnly(String completeKey)
Equivalent of
PluginController.enablePluginModule(String) , but will only affect the current node. |
void |
enablePlugins(String... keys) |
void |
enablePluginsLocalOnly(String... keys)
Equivalent of
PluginController.enablePlugins(String...) , but will only affect the current node. |
void |
init() |
Set<String> |
installPlugins(com.atlassian.plugin.PluginArtifact... pluginArtifacts) |
Set<String> |
installPluginsLocalOnly(com.atlassian.plugin.PluginArtifact... pluginArtifacts)
Equivalent of
PluginController.installPlugins(PluginArtifact...) , but will only affect the current node. |
void |
onApplicationStartedEvent(com.atlassian.config.lifecycle.events.ApplicationStartedEvent event)
Initialised the plugin system on receipt of a
ApplicationStartedEvent |
void |
onPluginUpgradedEvent(com.atlassian.plugin.event.events.PluginUpgradedEvent upgradedEvent) |
void |
uninstall(com.atlassian.plugin.Plugin plugin) |
void |
uninstallLocalOnly(com.atlassian.plugin.Plugin plugin)
Equivalent of
PluginController.uninstall(Plugin) , but will only affect the current node. |
addDynamicModule, addPlugins, disablePluginInternal, disablePluginWithoutPersisting, earlyStartup, getClassLoader, getDynamicModules, getDynamicPluginClass, getDynamicResourceAsStream, getEnabledModuleDescriptorsByClass, getEnabledModulesByClass, getEnabledPlugin, getEnabledPluginModule, getEnabledPlugins, getLateStartupEnableRetryProperty, getMinimumPluginVersionsFileProperty, getModuleDescriptors, getModules, getPlugin, getPluginModule, getPluginRestartState, getPlugins, getPlugins, getStartupOverrideFileProperty, getState, isPluginEnabled, isPluginModuleEnabled, isSystemPlugin, lateStartup, 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
addDynamicModule, disablePluginWithoutPersisting, removeDynamicModule, revertRestartRequiredChange, scanForNewPlugins, uninstallPlugins
getActiveModuleDescriptorsByClass, getClassLoader, getDynamicModules, getDynamicResourceAsStream, getEnabledModuleDescriptorsByClass, getEnabledModulesByClass, getEnabledPlugin, getEnabledPluginModule, getEnabledPlugins, getModuleDescriptors, getModuleDescriptors, getModules, getModules, getPlugin, getPluginModule, getPluginRestartState, getPlugins, getPlugins, getPlugins, isPluginEnabled, isPluginModuleEnabled, isSystemPlugin
public CrowdPluginManager(com.atlassian.plugin.manager.PluginPersistentStateStore pluginStateStore, List pluginLoaders, com.atlassian.plugin.ModuleDescriptorFactory moduleDescriptorFactory, com.atlassian.plugin.event.PluginEventManager pluginEventManager, PluginDirectoryLocator pluginDirectoryLocator, com.atlassian.event.api.EventPublisher eventPublisher, PluginChangeMessageSender pluginChangeMessageSender)
public void init() throws com.atlassian.plugin.PluginParseException
init
in interface com.atlassian.plugin.PluginSystemLifecycle
init
in class com.atlassian.plugin.manager.DefaultPluginManager
com.atlassian.plugin.PluginParseException
@EventListener public void onApplicationStartedEvent(com.atlassian.config.lifecycle.events.ApplicationStartedEvent event)
ApplicationStartedEvent
@PreDestroy public void destroy() throws Exception
destroy
in interface org.springframework.beans.factory.DisposableBean
Exception
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
ClusterAwarePluginController
PluginController.installPlugins(PluginArtifact...)
, but will only affect the current node.installPluginsLocalOnly
in interface ClusterAwarePluginController
com.atlassian.plugin.PluginParseException
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
ClusterAwarePluginController
PluginController.uninstall(Plugin)
, but will only affect the current node.uninstallLocalOnly
in interface ClusterAwarePluginController
com.atlassian.plugin.PluginException
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)
ClusterAwarePluginController
PluginController.enablePlugins(String...)
, but will only affect the current node.enablePluginsLocalOnly
in interface ClusterAwarePluginController
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)
ClusterAwarePluginController
PluginController.disablePlugin(String)
, but will only affect the current node.disablePluginLocalOnly
in interface ClusterAwarePluginController
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)
ClusterAwarePluginController
PluginController.enablePluginModule(String)
, but will only affect the current node.enablePluginModuleLocalOnly
in interface ClusterAwarePluginController
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)
ClusterAwarePluginController
PluginController.disablePluginModule(String)
, but will only affect the current node.disablePluginModuleLocalOnly
in interface ClusterAwarePluginController
public void onPluginUpgradedEvent(com.atlassian.plugin.event.events.PluginUpgradedEvent upgradedEvent)
Copyright © 2020 Atlassian. All rights reserved.