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 -
Field Summary
Fields inherited from class org.pf4j.DefaultPluginManager
PLUGINS_DIR_CONFIG_PROPERTY_NAMEFields 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 -
Method Summary
Modifier and TypeMethodDescriptionprotected org.springframework.core.env.PropertySource<?>Create a property source from a filefileNameinPluginManagerProperties.getPluginDir()/PluginWrapper.getPluginId()voidinit()voidList<org.springframework.core.env.PropertySource<?>>loadConfig(org.pf4j.PluginWrapper pluginWrapper) Methods inherited from class org.pf4j.spring.SpringPluginManager
createExtensionFactory, getApplicationContext, setApplicationContextMethods inherited from class org.pf4j.DefaultPluginManager
createExtensionFinder, createPluginDescriptorFinder, createPluginFactory, createPluginLoader, createPluginRepository, createPluginStatusProvider, createVersionManager, initialize, loadPluginFromPathMethods 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, whichPluginMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.ehrbase.plugin.EhrBasePluginManagerInterface
getApplicationContextMethods 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
-
EhrBasePluginManager
-
-
Method Details
-
init
public void init()- Overrides:
initin classorg.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 filefileNameinPluginManagerProperties.getPluginDir()/PluginWrapper.getPluginId()- Parameters:
fileName- json, yml and properties extensions are supportedpluginWrapper-- Returns:
-
loadConfig
public List<org.springframework.core.env.PropertySource<?>> loadConfig(org.pf4j.PluginWrapper pluginWrapper) - Specified by:
loadConfigin interfaceEhrBasePluginManagerInterface
-