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, warmRestartclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddDynamicModule, disablePluginWithoutPersisting, removeDynamicModule, revertRestartRequiredChange, scanForNewPlugins, uninstallPluginsgetActiveModuleDescriptorsByClass, getClassLoader, getDynamicModules, getDynamicResourceAsStream, getEnabledModuleDescriptorsByClass, getEnabledModulesByClass, getEnabledPlugin, getEnabledPluginModule, getEnabledPlugins, getModuleDescriptors, getModuleDescriptors, getModules, getModules, getPlugin, getPluginModule, getPluginRestartState, getPlugins, getPlugins, getPlugins, isPluginEnabled, isPluginModuleEnabled, isSystemPluginpublic 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.PluginSystemLifecycleinit in class com.atlassian.plugin.manager.DefaultPluginManagercom.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.DisposableBeanExceptionpublic Set<String> installPlugins(com.atlassian.plugin.PluginArtifact... pluginArtifacts) throws com.atlassian.plugin.PluginParseException
installPlugins in interface com.atlassian.plugin.PluginControllerinstallPlugins in class com.atlassian.plugin.manager.DefaultPluginManagercom.atlassian.plugin.PluginParseExceptionpublic Set<String> installPluginsLocalOnly(com.atlassian.plugin.PluginArtifact... pluginArtifacts) throws com.atlassian.plugin.PluginParseException
ClusterAwarePluginControllerPluginController.installPlugins(PluginArtifact...), but will only affect the current node.installPluginsLocalOnly in interface ClusterAwarePluginControllercom.atlassian.plugin.PluginParseExceptionpublic void uninstall(com.atlassian.plugin.Plugin plugin)
throws com.atlassian.plugin.PluginException
uninstall in interface com.atlassian.plugin.PluginControlleruninstall in class com.atlassian.plugin.manager.DefaultPluginManagercom.atlassian.plugin.PluginExceptionpublic void uninstallLocalOnly(com.atlassian.plugin.Plugin plugin)
throws com.atlassian.plugin.PluginException
ClusterAwarePluginControllerPluginController.uninstall(Plugin), but will only affect the current node.uninstallLocalOnly in interface ClusterAwarePluginControllercom.atlassian.plugin.PluginExceptionpublic void enablePlugins(String... keys)
enablePlugins in interface com.atlassian.plugin.PluginControllerenablePlugins in class com.atlassian.plugin.manager.DefaultPluginManagerpublic void enablePluginsLocalOnly(String... keys)
ClusterAwarePluginControllerPluginController.enablePlugins(String...), but will only affect the current node.enablePluginsLocalOnly in interface ClusterAwarePluginControllerpublic void disablePlugin(String key)
disablePlugin in interface com.atlassian.plugin.PluginControllerdisablePlugin in class com.atlassian.plugin.manager.DefaultPluginManagerpublic void disablePluginLocalOnly(String key)
ClusterAwarePluginControllerPluginController.disablePlugin(String), but will only affect the current node.disablePluginLocalOnly in interface ClusterAwarePluginControllerpublic void enablePluginModule(String completeKey)
enablePluginModule in interface com.atlassian.plugin.PluginControllerenablePluginModule in class com.atlassian.plugin.manager.DefaultPluginManagerpublic void enablePluginModuleLocalOnly(String completeKey)
ClusterAwarePluginControllerPluginController.enablePluginModule(String), but will only affect the current node.enablePluginModuleLocalOnly in interface ClusterAwarePluginControllerpublic void disablePluginModule(String completeKey)
disablePluginModule in interface com.atlassian.plugin.PluginControllerdisablePluginModule in class com.atlassian.plugin.manager.DefaultPluginManagerpublic void disablePluginModuleLocalOnly(String completeKey)
ClusterAwarePluginControllerPluginController.disablePluginModule(String), but will only affect the current node.disablePluginModuleLocalOnly in interface ClusterAwarePluginControllerpublic void onPluginUpgradedEvent(com.atlassian.plugin.event.events.PluginUpgradedEvent upgradedEvent)
Copyright © 2023 Atlassian. All rights reserved.