public class PluginManager extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
PluginManager()
Used by
getInstance() function check the available plugin on classpath
and add them on availablePlugins |
| Modifier and Type | Method and Description |
|---|---|
Map<String,org.gcube.vremanagement.executor.plugin.PluginDeclaration> |
getAvailablePlugins() |
static PluginManager |
getInstance()
Get the singleton instance of
PluginManager(). |
org.gcube.vremanagement.executor.plugin.PluginDeclaration |
getPlugin(String name) |
static org.gcube.vremanagement.executor.plugin.PluginDeclaration |
getPluginDeclaration(String pluginName)
Retrieve the PluginDeclaration class representing the plugin which
have the name provided as input
|
static org.gcube.vremanagement.executor.plugin.Plugin<? extends org.gcube.vremanagement.executor.plugin.PluginDeclaration> |
instantiatePlugin(String pluginName) |
protected PluginManager()
getInstance() function check the available plugin on classpath
and add them on availablePluginspublic static org.gcube.vremanagement.executor.plugin.PluginDeclaration getPluginDeclaration(String pluginName) throws org.gcube.vremanagement.executor.exception.PluginNotFoundException
pluginName - the name of the pluginorg.gcube.vremanagement.executor.exception.PluginNotFoundException - if the plugin is not availablepublic static org.gcube.vremanagement.executor.plugin.Plugin<? extends org.gcube.vremanagement.executor.plugin.PluginDeclaration> instantiatePlugin(String pluginName) throws org.gcube.vremanagement.executor.exception.InputsNullException, org.gcube.vremanagement.executor.exception.PluginNotFoundException
org.gcube.vremanagement.executor.exception.InputsNullExceptionorg.gcube.vremanagement.executor.exception.PluginNotFoundExceptionpublic static PluginManager getInstance()
PluginManager().
The first time this function is invoked the instance is null
so it is created. Otherwise the already created instance is returnedPluginManager()public org.gcube.vremanagement.executor.plugin.PluginDeclaration getPlugin(String name)
name - The name of the pluginCopyright © 2017. All Rights Reserved.