com.atlassian.plugin.loaders
Class DirectoryPluginLoader

java.lang.Object
  extended by com.atlassian.plugin.loaders.ScanningPluginLoader
      extended by 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.


Field Summary
 
Fields inherited from class com.atlassian.plugin.loaders.ScanningPluginLoader
pluginArtifactFactory, pluginFactories, plugins, scanner
 
Constructor Summary
DirectoryPluginLoader(File path, List<PluginFactory> pluginFactories, PluginArtifactFactory pluginArtifactFactory, PluginEventManager pluginEventManager)
          Constructs a loader for a particular directory and set of deployers
DirectoryPluginLoader(File path, List<PluginFactory> pluginFactories, 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, deployPluginFromUnit, discardPlugin, isDynamicPluginLoader, loadAllPlugins, loadFoundPlugins, onShutdown, postProcess, removePlugin, shutDown, supportsAddition, supportsRemoval
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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


Copyright © 2015 Atlassian. All rights reserved.