Class EhrBasePluginManager

java.lang.Object
org.pf4j.AbstractPluginManager
org.pf4j.DefaultPluginManager
org.pf4j.spring.SpringPluginManager
org.ehrbase.application.config.plugin.EhrBasePluginManager
All Implemented Interfaces:
EhrBasePluginManagerInterface, org.pf4j.PluginManager, org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware

public class EhrBasePluginManager extends org.pf4j.spring.SpringPluginManager implements EhrBasePluginManagerInterface
Author:
Stefan Spiska
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
     
  • 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
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected org.springframework.core.env.PropertySource<?>
    getConfig(String fileName, org.pf4j.PluginWrapper pluginWrapper)
    Create a property source from a file fileName in PluginManagerProperties.getPluginDir()/PluginWrapper.getPluginId()
    void
     
    void
     
    List<org.springframework.core.env.PropertySource<?>>
    loadConfig(org.pf4j.PluginWrapper pluginWrapper)
     

    Methods inherited from class org.pf4j.spring.SpringPluginManager

    createExtensionFactory, getApplicationContext, setApplicationContext

    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.ehrbase.plugin.EhrBasePluginManagerInterface

    getApplicationContext

    Methods inherited from interface org.pf4j.PluginManager

    addPluginStateListener, deletePlugin, disablePlugin, enablePlugin, getExtensionClasses, getExtensionClasses, getExtensionClasses, getExtensionClassNames, getExtensionFactory, getExtensions, getExtensions, getExtensions, getPlugin, getPluginClassLoader, getPlugins, getPlugins, getPluginsRoot, getPluginsRoots, getResolvedPlugins, getRuntimeMode, getStartedPlugins, getSystemVersion, getUnresolvedPlugins, getVersionManager, isDevelopment, isNotDevelopment, loadPlugin, loadPlugins, removePluginStateListener, setSystemVersion, startPlugin, startPlugins, stopPlugin, stopPlugins, unloadPlugin, unloadPlugins, whichPlugin
  • Constructor Details

  • Method Details

    • init

      public void init()
      Overrides:
      init in class org.pf4j.spring.SpringPluginManager
    • initPlugins

      public void initPlugins()
    • getConfig

      protected org.springframework.core.env.PropertySource<?> getConfig(String fileName, org.pf4j.PluginWrapper pluginWrapper)
      Create a property source from a file fileName in PluginManagerProperties.getPluginDir()/PluginWrapper.getPluginId()
      Parameters:
      fileName - json, yml and properties extensions are supported
      pluginWrapper -
      Returns:
    • loadConfig

      public List<org.springframework.core.env.PropertySource<?>> loadConfig(org.pf4j.PluginWrapper pluginWrapper)
      Specified by:
      loadConfig in interface EhrBasePluginManagerInterface