Class DirectoryScanningPluginFactory

java.lang.Object
com.atlassian.confluence.plugin.DirectoryScanningPluginFactory
All Implemented Interfaces:
org.springframework.beans.factory.FactoryBean<com.atlassian.plugin.loaders.ScanningPluginLoader>

public class DirectoryScanningPluginFactory extends Object implements org.springframework.beans.factory.FactoryBean<com.atlassian.plugin.loaders.ScanningPluginLoader>
The 'DirectoryScanningPluginFactory' generates a directory scanning pluginLoader which provides the functionality to load plugin jars from a custom defined path.

This pluginLoader scans the absolute path defined by the system-property 'atlassian.confluence.plugin.scan.directory' and loads the plugin jars available in that directory on startup.

  • Constructor Details

    • DirectoryScanningPluginFactory

      public DirectoryScanningPluginFactory(List<com.atlassian.plugin.factories.PluginFactory> pluginFactories, com.atlassian.plugin.event.PluginEventManager eventManager)
  • Method Details

    • getObject

      public com.atlassian.plugin.loaders.ScanningPluginLoader getObject()
      Specified by:
      getObject in interface org.springframework.beans.factory.FactoryBean<com.atlassian.plugin.loaders.ScanningPluginLoader>
    • getObjectType

      public Class getObjectType()
      Specified by:
      getObjectType in interface org.springframework.beans.factory.FactoryBean<com.atlassian.plugin.loaders.ScanningPluginLoader>
    • isSingleton

      public boolean isSingleton()
      Specified by:
      isSingleton in interface org.springframework.beans.factory.FactoryBean<com.atlassian.plugin.loaders.ScanningPluginLoader>