Package com.atlassian.plugin.loaders
Class PermissionCheckingPluginLoader
java.lang.Object
com.atlassian.plugin.loaders.ForwardingPluginLoader
com.atlassian.plugin.loaders.PermissionCheckingPluginLoader
- All Implemented Interfaces:
DiscardablePluginLoader,DynamicPluginLoader,PluginLoader
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddiscardPlugin(Plugin plugin) Notify the PluginLoader that the system will not be loading the given plugin.loadAllPlugins(ModuleDescriptorFactory moduleDescriptorFactory) Loads all plugins that can be installed in the plugin system.loadFoundPlugins(ModuleDescriptorFactory moduleDescriptorFactory) Load all newly found plugins that can be installed in the plugin system.voidremovePlugin(Plugin plugin) Remove a specific pluginMethods inherited from class com.atlassian.plugin.loaders.ForwardingPluginLoader
canLoad, createModule, delegate, isDynamicPluginLoader, supportsAddition, supportsRemoval, toString
-
Constructor Details
-
PermissionCheckingPluginLoader
-
-
Method Details
-
loadAllPlugins
Description copied from interface:PluginLoaderLoads all plugins that can be installed in the plugin system.- Specified by:
loadAllPluginsin interfacePluginLoader- Overrides:
loadAllPluginsin classForwardingPluginLoader- Parameters:
moduleDescriptorFactory- the factory for module descriptors- Returns:
- the list of found plugins, may be empty
-
loadFoundPlugins
Description copied from interface:PluginLoaderLoad all newly found plugins that can be installed in the plugin system. Only plugins not previously loaded will be added.- Specified by:
loadFoundPluginsin interfacePluginLoader- Overrides:
loadFoundPluginsin classForwardingPluginLoader- Parameters:
moduleDescriptorFactory- the factory for module descriptors- Returns:
- a list of newly discovered plugins since the last time plugins were loaded
-
removePlugin
Description copied from interface:PluginLoaderRemove a specific plugin- Specified by:
removePluginin interfacePluginLoader- Overrides:
removePluginin classForwardingPluginLoader
-
discardPlugin
Description copied from interface:DiscardablePluginLoaderNotify the PluginLoader that the system will not be loading the given plugin. This instructs the PluginLoader to discard any resources associated with the Plugin.- Specified by:
discardPluginin interfaceDiscardablePluginLoader- Overrides:
discardPluginin classForwardingPluginLoader
-