Class 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
    • 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
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      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 init()  
      void initPlugins()  
      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, 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 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
    • Method Detail

      • 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: