public class PluginLauncher extends java.lang.Object
| Constructor and Description |
|---|
PluginLauncher() |
| Modifier and Type | Method and Description |
|---|---|
static Plugin |
create(PluginDescriptor plugin)
Creates a new instance of the specified plugin and returns it.
|
static Plugin |
create(PluginDescriptor plugin,
boolean register)
Creates a new instance of the specified plugin and returns it.
|
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)
Deprecated.
Use
start(PluginDescriptor) instead.You can retrieve a PluginDescriptor from the class name by using
PluginLoader.getPlugin(String) method. |
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)
Deprecated.
Use
startSafe(PluginDescriptor) instead.You can retrieve a PluginDescriptor from the class name by using
PluginLoader.getPlugin(String) method. |
public PluginLauncher()
public static Plugin create(PluginDescriptor plugin, boolean register) throws java.lang.Exception
plugin - descriptor of the plugin we want to create an instance forregister - if we want to register the plugin in the active plugin listjava.lang.ExceptionstartSafe(PluginDescriptor)public static Plugin create(PluginDescriptor plugin) throws java.lang.Exception
plugin - descriptor of the plugin we want to create an instance forjava.lang.ExceptionstartSafe(PluginDescriptor)public static Plugin start(PluginDescriptor plugin)
PluginThreaded plugin) or null if an error
occurred.plugin - descriptor of the plugin we want to startstartSafe(PluginDescriptor)@Deprecated public static Plugin start(java.lang.String pluginClassName)
start(PluginDescriptor) instead.PluginDescriptor from the class name by using
PluginLoader.getPlugin(String) method.public 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).@Deprecated public static Plugin startSafe(java.lang.String pluginClassName) throws java.lang.Exception
startSafe(PluginDescriptor) instead.PluginDescriptor from the class name by using
PluginLoader.getPlugin(String) method.java.lang.Exception@Deprecated public static void launch(PluginDescriptor descriptor)
start(PluginDescriptor) instead.