com.atlassian.jira.plugin
Class JiraPluginManager

java.lang.Object
  extended by com.atlassian.plugin.DefaultPluginManager
      extended by com.atlassian.jira.plugin.JiraPluginManager
All Implemented Interfaces:
Startable, com.atlassian.plugin.PluginAccessor, com.atlassian.plugin.PluginController, com.atlassian.plugin.PluginManager

public class JiraPluginManager
extends com.atlassian.plugin.DefaultPluginManager
implements Startable


Field Summary
static String PLUGIN_LICENSE_REGISTRY
           
static String PLUGIN_LICENSE_TYPE_STORE
           
 
Fields inherited from interface com.atlassian.plugin.PluginManager
PLUGIN_DESCRIPTOR_FILENAME
 
Constructor Summary
JiraPluginManager(PluginInstallationManager installablePluginManager, com.atlassian.plugin.PluginStateStore store, PluginLoaderFactory pluginLoaderFactory, com.atlassian.plugin.ModuleDescriptorFactory moduleDescriptorFactory, PluginVersionStore pluginVersionStore)
           
 
Method Summary
protected  void addPlugin(com.atlassian.plugin.loaders.PluginLoader pluginLoader, com.atlassian.plugin.Plugin plugin)
           
 void disablePlugin(String key)
           
 void disablePluginModule(String completeKey)
           
 void enablePlugin(String key)
           
 void enablePluginModule(String completeKey)
           
 String installPlugin(com.atlassian.plugin.PluginJar pluginJar)
           
 void start()
           
 void uninstall(com.atlassian.plugin.Plugin plugin)
           
 
Methods inherited from class com.atlassian.plugin.DefaultPluginManager
disablePluginModuleState, disablePluginState, enablePluginModuleState, enablePluginState, getClassLoader, getDynamicPluginClass, getDynamicResourceAsStream, getEnabledModuleDescriptorsByClass, getEnabledModuleDescriptorsByType, getEnabledModulesByClass, getEnabledModulesByClassAndDescriptor, getEnabledModulesByClassAndDescriptor, getEnabledPlugin, getEnabledPluginModule, getEnabledPlugins, getEnabledStateAwareModuleKeys, getModuleDescriptors, getModules, getPlugin, getPluginModule, getPluginResourceAsStream, getPlugins, getPlugins, getState, getStore, init, isPluginEnabled, isPluginModuleEnabled, isSystemPlugin, notifyModuleDisabled, notifyModuleEnabled, notifyPluginDisabled, notifyPluginEnabled, notifyUninstallPlugin, removeStateFromStore, scanForNewPlugins, setDescriptorParserFactory, setPluginInstaller, unloadPlugin, updatePlugin
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PLUGIN_LICENSE_REGISTRY

public static final String PLUGIN_LICENSE_REGISTRY
See Also:
Constant Field Values

PLUGIN_LICENSE_TYPE_STORE

public static final String PLUGIN_LICENSE_TYPE_STORE
See Also:
Constant Field Values
Constructor Detail

JiraPluginManager

public JiraPluginManager(PluginInstallationManager installablePluginManager,
                         com.atlassian.plugin.PluginStateStore store,
                         PluginLoaderFactory pluginLoaderFactory,
                         com.atlassian.plugin.ModuleDescriptorFactory moduleDescriptorFactory,
                         PluginVersionStore pluginVersionStore)
Method Detail

start

public void start()
           throws com.atlassian.plugin.PluginException
Specified by:
start in interface Startable
Throws:
com.atlassian.plugin.PluginException

installPlugin

public String installPlugin(com.atlassian.plugin.PluginJar pluginJar)
                     throws com.atlassian.plugin.PluginParseException
Specified by:
installPlugin in interface com.atlassian.plugin.PluginController
Overrides:
installPlugin in class com.atlassian.plugin.DefaultPluginManager
Throws:
com.atlassian.plugin.PluginParseException

uninstall

public void uninstall(com.atlassian.plugin.Plugin plugin)
               throws com.atlassian.plugin.PluginException
Specified by:
uninstall in interface com.atlassian.plugin.PluginController
Overrides:
uninstall in class com.atlassian.plugin.DefaultPluginManager
Throws:
com.atlassian.plugin.PluginException

enablePlugin

public void enablePlugin(String key)
Specified by:
enablePlugin in interface com.atlassian.plugin.PluginController
Overrides:
enablePlugin in class com.atlassian.plugin.DefaultPluginManager

disablePlugin

public void disablePlugin(String key)
Specified by:
disablePlugin in interface com.atlassian.plugin.PluginController
Overrides:
disablePlugin in class com.atlassian.plugin.DefaultPluginManager

disablePluginModule

public void disablePluginModule(String completeKey)
Specified by:
disablePluginModule in interface com.atlassian.plugin.PluginController
Overrides:
disablePluginModule in class com.atlassian.plugin.DefaultPluginManager

enablePluginModule

public void enablePluginModule(String completeKey)
Specified by:
enablePluginModule in interface com.atlassian.plugin.PluginController
Overrides:
enablePluginModule in class com.atlassian.plugin.DefaultPluginManager

addPlugin

protected void addPlugin(com.atlassian.plugin.loaders.PluginLoader pluginLoader,
                         com.atlassian.plugin.Plugin plugin)
                  throws com.atlassian.plugin.PluginParseException
Overrides:
addPlugin in class com.atlassian.plugin.DefaultPluginManager
Throws:
com.atlassian.plugin.PluginParseException


Copyright © 2002-2008 Atlassian. All Rights Reserved.