Class DirectoryPluginLoader

java.lang.Object
com.atlassian.plugin.loaders.ScanningPluginLoader
com.atlassian.plugin.loaders.DirectoryPluginLoader
All Implemented Interfaces:
DiscardablePluginLoader, DynamicPluginLoader, PluginLoader

public class DirectoryPluginLoader extends ScanningPluginLoader
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.
  • 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 plugins
      pluginFactories - The deployers that will handle turning an artifact into a plugin
      pluginEventManager - 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 plugins
      pluginFactories - The deployers that will handle turning an artifact into a plugin
      pluginArtifactFactory - The plugin artifact factory
      pluginEventManager - The event manager, used for listening for shutdown events
      Since:
      2.1.0