public abstract class Plugin<T extends PluginDeclaration> extends Object
| Constructor and Description |
|---|
Plugin(T pluginDeclaration) |
Plugin(T pluginDeclaration,
Persistence<? extends PersistenceConnector> persistence)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
T |
getPluginDeclaration() |
abstract void |
launch(Map<String,Object> inputs)
Launch the plugin with the provided input.
|
protected abstract void |
onStop()
This function is used to correctly stop the plugin
|
void |
stop()
Invoke onStop() function to allow the plugin to safely stop the execution
|
@Deprecated public Plugin(T pluginDeclaration, Persistence<? extends PersistenceConnector> persistence)
public Plugin(T pluginDeclaration)
public T getPluginDeclaration()
public abstract void launch(Map<String,Object> inputs) throws Exception
inputs - Exception - if the launch failsprotected abstract void onStop()
throws Exception
Exception - if the launch failsCopyright © 2016. All Rights Reserved.