com.atlassian.plugin
Class DefaultPluginManager

java.lang.Object
  extended by com.atlassian.plugin.manager.DefaultPluginManager
      extended by com.atlassian.plugin.DefaultPluginManager
All Implemented Interfaces:
PluginAccessor, PluginController, PluginManager, PluginSystemLifecycle

Deprecated. Since 2.2.0, use DefaultPluginManager instead

@Deprecated
public class DefaultPluginManager
extends DefaultPluginManager
implements PluginManager

This implementation delegates the initiation and classloading of plugins to a list of PluginLoaders and records the state of plugins in a PluginPersistentStateStore.

This class is responsible for enabling and disabling plugins and plugin modules and reflecting these state changes in the PluginStateStore.

An interesting quirk in the design is that DefaultPluginManager.installPlugin(PluginArtifact) explicitly stores the plugin via a PluginInstaller, whereas DefaultPluginManager.uninstall(Plugin) relies on the underlying PluginLoader to remove the plugin if necessary.


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.atlassian.plugin.PluginAccessor
PluginAccessor.Descriptor
 
Field Summary
 
Fields inherited from interface com.atlassian.plugin.PluginManager
PLUGIN_DESCRIPTOR_FILENAME
 
Constructor Summary
DefaultPluginManager(PluginPersistentStateStore store, java.util.List<PluginLoader> pluginLoaders, ModuleDescriptorFactory moduleDescriptorFactory, PluginEventManager pluginEventManager)
          Deprecated.  
 
Method Summary
 
Methods inherited from class com.atlassian.plugin.manager.DefaultPluginManager
addPlugin, addPlugins, disablePlugin, disablePluginModule, disablePluginModuleState, disablePluginState, enablePlugin, enablePluginModule, enablePluginModuleState, enablePluginState, getClassLoader, getDynamicPluginClass, getDynamicResourceAsStream, getEnabledModuleDescriptorsByClass, getEnabledModuleDescriptorsByClass, getEnabledModuleDescriptorsByType, getEnabledModulesByClass, getEnabledModulesByClassAndDescriptor, getEnabledModulesByClassAndDescriptor, getEnabledPlugin, getEnabledPluginModule, getEnabledPlugins, getModuleDescriptors, getModules, getPlugin, getPluginModule, getPluginResourceAsStream, getPluginRestartState, getPlugins, getPlugins, getState, getStore, init, installPlugin, isPluginEnabled, isPluginModuleEnabled, isSystemPlugin, notifyModuleDisabled, notifyModuleEnabled, notifyPluginDisabled, notifyPluginEnabled, notifyUninstallPlugin, onPluginRefresh, removeStateFromStore, scanForNewPlugins, setDescriptorParserFactory, setPluginInstaller, shutdown, uninstall, unloadPlugin, updatePlugin
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.atlassian.plugin.PluginController
disablePlugin, disablePluginModule, enablePlugin, enablePluginModule, installPlugin, scanForNewPlugins, uninstall
 
Methods inherited from interface com.atlassian.plugin.PluginAccessor
getClassLoader, getDynamicPluginClass, getDynamicResourceAsStream, getEnabledModuleDescriptorsByClass, getEnabledModuleDescriptorsByClass, getEnabledModuleDescriptorsByType, getEnabledModulesByClass, getEnabledModulesByClassAndDescriptor, getEnabledModulesByClassAndDescriptor, getEnabledPlugin, getEnabledPluginModule, getEnabledPlugins, getModuleDescriptors, getModules, getPlugin, getPluginModule, getPluginResourceAsStream, getPluginRestartState, getPlugins, getPlugins, isPluginEnabled, isPluginModuleEnabled, isSystemPlugin
 
Methods inherited from interface com.atlassian.plugin.PluginSystemLifecycle
init, shutdown
 

Constructor Detail

DefaultPluginManager

public DefaultPluginManager(PluginPersistentStateStore store,
                            java.util.List<PluginLoader> pluginLoaders,
                            ModuleDescriptorFactory moduleDescriptorFactory,
                            PluginEventManager pluginEventManager)
Deprecated. 


Copyright © 2009 Atlassian Pty Ltd. All Rights Reserved.