Class ExtractionPluginServerMain
java.lang.Object
org.hansken.plugin.extraction.runtime.grpc.server.ExtractionPluginServerMain
Code to provide main() functionality to run an Extraction Plugin as standalone server.
This helper class handles all arguments that can be set to start an Extraction Plugin as a server.
- Author:
- Netherlands Forensic Institute
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidrunMain(Supplier<BaseExtractionPlugin> pluginSupplier, String[] args) Utility to help starting your Extraction Plugin as a server.
-
Method Details
-
runMain
Utility to help starting your Extraction Plugin as a server. This helper class handles all arguments that can be set to start an Extraction Plugin as a server.This means that you can create a server for an Extraction Plugin as follows:
public static void main(String[] args) { ExtractionPluginServerMain.runMain(YourPlugin::new, args); }- Parameters:
pluginSupplier- Supplier that constructs a new instance of your Extraction Plugin.args- Arguments originally passed to main()
-