public class PluginLauncher extends java.lang.Object
Constructor and Description |
---|
PluginLauncher() |
Modifier and Type | Method and Description |
---|---|
static void |
launch(PluginDescriptor descriptor)
Deprecated.
Use
start(PluginDescriptor) instead. |
static Plugin |
start(PluginDescriptor plugin)
Starts the specified plugin (catched exception version).
|
static Plugin |
start(java.lang.String pluginClassName)
Start the specified plugin.
|
static Plugin |
startSafe(PluginDescriptor plugin)
Same as
start(PluginDescriptor) except it throws Exception on error
so user can handle them. |
static Plugin |
startSafe(java.lang.String pluginClassName)
Same as
start(String) except it throws Exception on error so user
can handle them. |
public PluginLauncher()
public static Plugin start(PluginDescriptor plugin)
PluginThreaded
plugin) or
null
if an error occurred.plugin
- descriptor of the plugin we want to startstartSafe(PluginDescriptor)
public static Plugin start(java.lang.String pluginClassName)
PluginThreaded
plugin) or
null
if an error occurred or if the specified class name is not a valid plugin
class name.pluginClassName
- class name of the plugin we want to startpublic static Plugin startSafe(PluginDescriptor plugin) throws java.lang.Exception
start(PluginDescriptor)
except it throws Exception
on error
so user can handle them.plugin
- descriptor of the plugin we want to start
compatibility)java.lang.InterruptedException
- if the current thread was interrupted while waiting for execution on EDT.java.lang.Exception
- if the computation threw an exception (only when plugin is executed on EDT).public static Plugin startSafe(java.lang.String pluginClassName) throws java.lang.Exception
start(String)
except it throws Exception
on error so user
can handle them.java.lang.InterruptedException
- if the current thread was interrupted while waiting for execution on EDT.java.lang.Exception
- if the computation threw an exception (only when plugin is executed on EDT).@Deprecated public static void launch(PluginDescriptor descriptor)
start(PluginDescriptor)
instead.