Class MockSpringBootPluginManager

  • All Implemented Interfaces:
    org.pf4j.PluginManager

    public class MockSpringBootPluginManager
    extends org.pf4j.DefaultPluginManager
    PluginManager to hold the main ApplicationContext. This is used for plugin unit test mocking.
    • Field Summary

      • Fields inherited from class org.pf4j.DefaultPluginManager

        PLUGINS_DIR_CONFIG_PROPERTY_NAME
      • Fields inherited from class org.pf4j.AbstractPluginManager

        DEFAULT_PLUGINS_DIR, dependencyResolver, DEVELOPMENT_PLUGINS_DIR, exactVersionAllowed, extensionFactory, extensionFinder, MODE_PROPERTY_NAME, pluginClassLoaders, pluginDescriptorFinder, pluginFactory, pluginLoader, pluginRepository, plugins, PLUGINS_DIR_PROPERTY_NAME, pluginsRoots, pluginStateListeners, pluginStatusProvider, resolvedPlugins, runtimeMode, startedPlugins, systemVersion, unresolvedPlugins, versionManager
    • Constructor Summary

      Constructors 
      Constructor Description
      MockSpringBootPluginManager​(org.springframework.context.ApplicationContext applicationContext)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected org.pf4j.ExtensionFactory createExtensionFactory()  
      • Methods inherited from class org.pf4j.DefaultPluginManager

        createExtensionFinder, createPluginDescriptorFinder, createPluginFactory, createPluginLoader, createPluginRepository, createPluginStatusProvider, createVersionManager, initialize, loadPluginFromPath
      • Methods inherited from class org.pf4j.AbstractPluginManager

        addPluginStateListener, checkPluginId, createPluginsRoot, createPluginWrapper, deletePlugin, disablePlugin, enablePlugin, firePluginStateEvent, getExtensionClasses, getExtensionClasses, getExtensionClasses, getExtensionClasses, getExtensionClassNames, getExtensionFactory, getExtensions, getExtensions, getExtensions, getExtensions, getPlugin, getPluginClassLoader, getPluginClassLoaders, getPluginDescriptorFinder, getPluginFactory, getPluginLabel, getPluginLoader, getPlugins, getPlugins, getPluginsRoot, getPluginsRoots, getResolvedPlugins, getRuntimeMode, getStartedPlugins, getSystemVersion, getUnresolvedPlugins, getVersion, getVersionManager, idForPath, isExactVersionAllowed, isPluginDisabled, isPluginValid, loadPlugin, loadPlugins, removePluginStateListener, resolvePlugins, setExactVersionAllowed, setSystemVersion, startPlugin, startPlugins, stopPlugin, stopPlugin, stopPlugins, unloadPlugin, unloadPlugin, unloadPlugins, validatePluginDescriptor, whichPlugin
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.pf4j.PluginManager

        isDevelopment, isNotDevelopment
    • Constructor Detail

      • MockSpringBootPluginManager

        public MockSpringBootPluginManager​(org.springframework.context.ApplicationContext applicationContext)
    • Method Detail

      • createExtensionFactory

        protected org.pf4j.ExtensionFactory createExtensionFactory()
        Overrides:
        createExtensionFactory in class org.pf4j.DefaultPluginManager