public class

JebPythonPluginService

extends Object
java.lang.Object
   ↳ com.pnfsoftware.jeb.client.script.JebPythonPluginService

Class Overview

Manager for JEB plugins written in Python.

Summary

Public Constructors
JebPythonPluginService(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.
Public Methods
synchronized JebPythonPluginFactory createFactory(String path)
Load and execute a Python plugin.
IPlugin createPlugin(Class<? extends IPlugin> pluginClass)
@return
synchronized Class<? extends IPlugin> getPluginClass(String path)
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public JebPythonPluginService (File pyLibDir)

Create a new Python plugin loader.

Parameters
pyLibDir directory containing libraries used to execute plugins, including the Jython interpreter
Throws
JebException

public JebPythonPluginService (File pyLibDir, ClassLoader cl)

Create a new Python plugin loader.

Parameters
pyLibDir directory containing libraries used to execute plugins, including the Jython interpreter
cl optional classloader
Throws
JebException

public JebPythonPluginService (String pyLibDirPath)

Create a new Python plugin loader.

Parameters
pyLibDirPath directory containing libraries used to execute plugins (that folder must include the Jython interpreter)
Throws
JebException

Public Methods

public synchronized JebPythonPluginFactory createFactory (String path)

Load and execute a Python plugin. The plugin file name must end with '.py' and must contain one class extending IPlugin, whose name matches the file name.

Parameters
path the Python file path
Returns
  • a plugin factory
Throws
JebException

public IPlugin createPlugin (Class<? extends IPlugin> pluginClass)

@return

Parameters
pluginClass a plugin class returned by getPluginClass(String).
Throws
Exception

public synchronized Class<? extends IPlugin> getPluginClass (String path)

Throws
JebException