PluginManager

io.joern.console.PluginManager
class PluginManager(val installDir: File)

Plugin management component

Joern allows plugins to be installed. A plugin at the very least consists of a class that inherits from LayerCreator, bundled in a jar file, packaged in a zip file. The zip file may furthermore contain any dependency jars that the plugin requires and that are not included on the joern class path by default.

Value parameters

installDir

the Joern/Ocular installation dir

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def add(filename: String): Unit

Install the plugin stored at filename. The plugin is expected to be a zip file containing Java archives (.jar files).

Install the plugin stored at filename. The plugin is expected to be a zip file containing Java archives (.jar files).

Attributes

def listPlugins(): List[String]

Generate a sorted list of all installed plugins by examining the plugin directory.

Generate a sorted list of all installed plugins by examining the plugin directory.

Attributes

def pluginDir: Option[Path]

Return the path to the plugin directory or None if the plugin directory does not exist.

Return the path to the plugin directory or None if the plugin directory does not exist.

Attributes

def rm(name: String): List[String]

Delete plugin with given name from the plugin directory.

Delete plugin with given name from the plugin directory.

Attributes

Concrete fields

val installDir: File