Autopsy  4.21.0
Graphical digital forensics platform for The Sleuth Kit and other tools.
Classes | Static Public Member Functions | Static Private Member Functions | Static Private Attributes | List of all members
org.sleuthkit.autopsy.python.JythonModuleLoader Class Reference

Classes

class  DataSourceProcessorDefFilter
 
class  GeneralReportModuleDefFilter
 
class  IngestModuleFactoryDefFilter
 
interface  LineFilter
 
class  PythonScriptFileFilter
 

Static Public Member Functions

static synchronized List< DataSourceProcessorgetDataSourceProcessorModules ()
 
static synchronized List< GeneralReportModulegetGeneralReportModules ()
 
static synchronized List< IngestModuleFactorygetIngestModuleFactories ()
 

Static Private Member Functions

static synchronized void copyInternalInstallToUserDir ()
 
static< T > T createObjectFromScript (PythonInterpreter interpreter, File script, String className, Class< T > interfaceClass)
 
static< T > List< T > getInterfaceImplementations (LineFilter filter, Class< T > interfaceClass)
 
static File getUserDirInternalPython ()
 

Static Private Attributes

static final String INTERNAL_PYTHON_MODULES_FOLDER = "InternalPythonModules"
 
static final Logger logger = Logger.getLogger(JythonModuleLoader.class.getName())
 

Detailed Description

Finds and loads Autopsy modules written using the Jython variant of the Python scripting language.

Definition at line 56 of file JythonModuleLoader.java.

Member Function Documentation

static synchronized void org.sleuthkit.autopsy.python.JythonModuleLoader.copyInternalInstallToUserDir ( )
staticprivate

If user directory internal python modules does not exist, create it and copy contents internal python modules in installation directory to that location. This avoids creating files in the installation directory when compiling the python files.

Definition at line 105 of file JythonModuleLoader.java.

References org.sleuthkit.autopsy.python.JythonModuleLoader.getUserDirInternalPython().

Referenced by org.sleuthkit.autopsy.python.JythonModuleLoader.getInterfaceImplementations().

static <T> T org.sleuthkit.autopsy.python.JythonModuleLoader.createObjectFromScript ( PythonInterpreter  interpreter,
File  script,
String  className,
Class< T >  interfaceClass 
)
staticprivate
static synchronized List<DataSourceProcessor> org.sleuthkit.autopsy.python.JythonModuleLoader.getDataSourceProcessorModules ( )
static

Get data source processors modules implemented using Jython.

Returns
A list of objects that implement the DataSourceProcessor interface.

Definition at line 87 of file JythonModuleLoader.java.

References org.sleuthkit.autopsy.python.JythonModuleLoader.getInterfaceImplementations().

Referenced by org.sleuthkit.autopsy.core.Installer.preloadJython().

static synchronized List<GeneralReportModule> org.sleuthkit.autopsy.python.JythonModuleLoader.getGeneralReportModules ( )
static

Get general report modules implemented using Jython.

Returns
A list of objects that implement the GeneralReportModule interface.

Definition at line 77 of file JythonModuleLoader.java.

References org.sleuthkit.autopsy.python.JythonModuleLoader.getInterfaceImplementations().

Referenced by org.sleuthkit.autopsy.core.Installer.preloadJython().

static synchronized List<IngestModuleFactory> org.sleuthkit.autopsy.python.JythonModuleLoader.getIngestModuleFactories ( )
static

Get ingest module factories implemented using Jython.

Returns
A list of objects that implement the IngestModuleFactory interface.

Definition at line 67 of file JythonModuleLoader.java.

References org.sleuthkit.autopsy.python.JythonModuleLoader.getInterfaceImplementations().

Referenced by org.sleuthkit.autopsy.integrationtesting.IngestModuleFactoryService.getFactories(), and org.sleuthkit.autopsy.core.Installer.preloadJython().

static <T> List<T> org.sleuthkit.autopsy.python.JythonModuleLoader.getInterfaceImplementations ( LineFilter  filter,
Class< T >  interfaceClass 
)
staticprivate
static File org.sleuthkit.autopsy.python.JythonModuleLoader.getUserDirInternalPython ( )
staticprivate

Member Data Documentation

final String org.sleuthkit.autopsy.python.JythonModuleLoader.INTERNAL_PYTHON_MODULES_FOLDER = "InternalPythonModules"
staticprivate
final Logger org.sleuthkit.autopsy.python.JythonModuleLoader.logger = Logger.getLogger(JythonModuleLoader.class.getName())
staticprivate

Definition at line 58 of file JythonModuleLoader.java.


The documentation for this class was generated from the following file:

Copyright © 2012-2022 Basis Technology. Generated on: Tue Feb 6 2024
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.