Interface TypedConfigurablePluginFactory
-
- All Implemented Interfaces:
-
org.ossreviewtoolkit.utils.common.ConfigurablePluginFactory,org.ossreviewtoolkit.utils.common.Plugin
public interface TypedConfigurablePluginFactory<CONFIG extends Object, PLUGIN extends Object> implements ConfigurablePluginFactory<PLUGIN>
An interface to be implemented by configurable plugin factories that provide a typed configuration class. The benefit of implementing this interface over ConfigurablePluginFactory is that it enforces the separation of parsing the config map and creating the plugin.
-
-
Method Summary
Modifier and Type Method Description PLUGINcreate(Map<String, String> options, Map<String, String> secrets)Create a new instance of PLUGIN from options and secrets. abstract PLUGINcreate(CONFIG config)Create a new instance of PLUGIN from config. abstract CONFIGparseConfig(Map<String, String> options, Map<String, String> secrets)Parse the options and secrets map into a CONFIG object.
-