Package com.atlassian.plugin.loaders
Class DirectoryPluginLoader
java.lang.Object
com.atlassian.plugin.loaders.ScanningPluginLoader
com.atlassian.plugin.loaders.DirectoryPluginLoader
- All Implemented Interfaces:
DiscardablePluginLoader,DynamicPluginLoader,PluginLoader
A plugin loader to load plugins from a directory on disk. A
DirectoryScanner is used to locate plugin
artifacts and determine if they need to be redeployed or not.-
Field Summary
Fields inherited from class com.atlassian.plugin.loaders.ScanningPluginLoader
pluginArtifactFactory, pluginFactories, plugins, scanner -
Constructor Summary
ConstructorsConstructorDescriptionDirectoryPluginLoader(File path, List<PluginFactory> pluginFactories, PluginEventManager pluginEventManager) Constructs a loader for a particular directory and set of deployersDirectoryPluginLoader(File path, List<PluginFactory> pluginFactories, PluginArtifactFactory pluginArtifactFactory, PluginEventManager pluginEventManager) Constructs a loader for a particular directory and set of deployers -
Method Summary
Methods inherited from class com.atlassian.plugin.loaders.ScanningPluginLoader
canLoad, createModule, deployPluginFromUnit, discardPlugin, isDynamicPluginLoader, loadAllPlugins, loadFoundPlugins, onShutdown, postProcess, removePlugin, supportsAddition, supportsRemoval
-
Constructor Details
-
DirectoryPluginLoader
public DirectoryPluginLoader(File path, List<PluginFactory> pluginFactories, PluginEventManager pluginEventManager) Constructs a loader for a particular directory and set of deployers- Parameters:
path- The directory containing the pluginspluginFactories- The deployers that will handle turning an artifact into a pluginpluginEventManager- The event manager, used for listening for shutdown events- Since:
- 2.0.0
-
DirectoryPluginLoader
public DirectoryPluginLoader(File path, List<PluginFactory> pluginFactories, PluginArtifactFactory pluginArtifactFactory, PluginEventManager pluginEventManager) Constructs a loader for a particular directory and set of deployers- Parameters:
path- The directory containing the pluginspluginFactories- The deployers that will handle turning an artifact into a pluginpluginArtifactFactory- The plugin artifact factorypluginEventManager- The event manager, used for listening for shutdown events- Since:
- 2.1.0
-