Class JebPythonPluginService
java.lang.Object
com.pnfsoftware.jeb.client.script.JebPythonPluginService
Manager for JEB plugins written in Python.
-
Constructor Summary
ConstructorsConstructorDescriptionJebPythonPluginService
(File pyLibDir) Create a new Python plugin loader.JebPythonPluginService
(File pyLibDir, ClassLoader cl) Create a new Python plugin loader.JebPythonPluginService
(String pyLibDirPath) Create a new Python plugin loader. -
Method Summary
Modifier and TypeMethodDescriptioncreateFactory
(String path) Load and execute a Python plugin.createPlugin
(Class<? extends IPlugin> pluginClass) getPluginClass
(String path)
-
Constructor Details
-
JebPythonPluginService
Create a new Python plugin loader.- Parameters:
pyLibDir
- directory containing libraries used to execute plugins, including the Jython interpreter- Throws:
JebException
-
JebPythonPluginService
Create a new Python plugin loader.- Parameters:
pyLibDir
- directory containing libraries used to execute plugins, including the Jython interpretercl
- optional classloader- Throws:
JebException
-
JebPythonPluginService
Create a new Python plugin loader.- Parameters:
pyLibDirPath
- directory containing libraries used to execute plugins (that folder must include the Jython interpreter)- Throws:
JebException
-
-
Method Details
-
createFactory
Load and execute a Python plugin. The plugin file name must end with '.py' and must contain one class extendingIPlugin
, whose name matches the file name.- Parameters:
path
- the Python file path- Returns:
- a plugin factory
- Throws:
JebException
-
getPluginClass
- Throws:
JebException
-
createPlugin
- Parameters:
pluginClass
- a plugin class returned bygetPluginClass(String)
.- Returns:
- Throws:
Exception
-