Package fr.gouv.vitam.worker.core.plugin
Class PluginConfiguration
- java.lang.Object
-
- fr.gouv.vitam.worker.core.plugin.PluginConfiguration
-
public class PluginConfiguration extends java.lang.Object
class storing configuration and type of a plugin
-
-
Constructor Summary
Constructors Constructor Description PluginConfiguration(java.lang.String propertiesFile, java.lang.Class<ActionHandler> actionHandlerClazz)
constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getPropertiesFile()
property file link to the pluginActionHandler
newInstance()
create a new instance for the plugin
-
-
-
Constructor Detail
-
PluginConfiguration
public PluginConfiguration(java.lang.String propertiesFile, java.lang.Class<ActionHandler> actionHandlerClazz)
constructor- Parameters:
propertiesFile
- the plugin properties fileactionHandlerClazz
- the class of worker ActionHandler
-
-
Method Detail
-
getPropertiesFile
public java.lang.String getPropertiesFile()
property file link to the plugin- Returns:
- path of the property file
-
newInstance
public ActionHandler newInstance() throws InvocationPluginException
create a new instance for the plugin- Returns:
- new instance
- Throws:
InvocationPluginException
- if could not instance the plugin
-
-