Package ca.phon.plugin
Class PluginEntryPointRunner
java.lang.Object
ca.phon.plugin.PluginEntryPointRunner
Methods for executing plugin entry points
using various methods.
-
Constructor Summary
ConstructorDescriptionConstructor.PluginEntryPointRunner
(IPluginEntryPoint ep, Map<String, Object> args) Constructor.PluginEntryPointRunner
(String epName) ConstructorPluginEntryPointRunner
(String epName, Map<String, Object> args) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Execute plugin on calling thread.static IPluginEntryPoint
static IPluginEntryPoint
executePlugin
(IPluginEntryPoint ep, Map<String, Object> args) static IPluginEntryPoint
executePlugin
(String epName) static IPluginEntryPoint
executePlugin
(String epName, Map<String, Object> args) ca.phon.plugin.PluginEntryPointRunner.PluginEntryPointTask
Execute plugin on the default background thread.static ca.phon.plugin.PluginEntryPointRunner.PluginEntryPointTask
static ca.phon.plugin.PluginEntryPointRunner.PluginEntryPointTask
executePluginInBackground
(IPluginEntryPoint ep, Map<String, Object> args) static ca.phon.plugin.PluginEntryPointRunner.PluginEntryPointTask
executePluginInBackground
(String epName) static ca.phon.plugin.PluginEntryPointRunner.PluginEntryPointTask
executePluginInBackground
(String epName, Map<String, Object> args) Execute plugin a new threadstatic PhonTask
static PhonTask
executePluginOnNewThread
(IPluginEntryPoint ep, Map<String, Object> args) static PhonTask
executePluginOnNewThread
(String epName) static PhonTask
executePluginOnNewThread
(String epName, Map<String, Object> args) static PhonTask
executePluginOnThread
(IPluginEntryPoint ep, PhonWorker thread) static PhonTask
executePluginOnThread
(IPluginEntryPoint ep, Map<String, Object> args, PhonWorker thread) executePluginOnThread
(PhonWorker thread) Execute plugin on the given worker thread.static PhonTask
executePluginOnThread
(String epName, PhonWorker thread) static PhonTask
executePluginOnThread
(String epName, Map<String, Object> args, PhonWorker thread) getArgs()
getEp()
void
void
-
Constructor Details
-
PluginEntryPointRunner
Constructor- Parameters:
epName
-
-
PluginEntryPointRunner
Constructor.- Parameters:
epName
-args
-
-
PluginEntryPointRunner
Constructor.- Parameters:
ep
-
-
PluginEntryPointRunner
Constructor.- Parameters:
ep
-args
-
-
-
Method Details
-
getEp
-
setEp
-
getArgs
-
setArgs
-
executePlugin
Execute plugin on calling thread. Calling thread will be blocked until pluginStart is finished.- Throws:
PluginException
-
executePlugin
- Throws:
PluginException
-
executePlugin
- Throws:
PluginException
-
executePlugin
public static IPluginEntryPoint executePlugin(IPluginEntryPoint ep, Map<String, Object> args) throws PluginException- Throws:
PluginException
-
executePlugin
public static IPluginEntryPoint executePlugin(String epName, Map<String, Object> args) throws PluginException- Throws:
PluginException
-
executePluginInBackground
public ca.phon.plugin.PluginEntryPointRunner.PluginEntryPointTask executePluginInBackground()Execute plugin on the default background thread.- Returns:
- the plugin task
-
executePluginInBackground
public static ca.phon.plugin.PluginEntryPointRunner.PluginEntryPointTask executePluginInBackground(String epName) -
executePluginInBackground
-
executePluginInBackground
public static ca.phon.plugin.PluginEntryPointRunner.PluginEntryPointTask executePluginInBackground(IPluginEntryPoint ep) -
executePluginInBackground
public static ca.phon.plugin.PluginEntryPointRunner.PluginEntryPointTask executePluginInBackground(IPluginEntryPoint ep, Map<String, Object> args) -
executePluginOnThread
Execute plugin on the given worker thread.- Parameters:
thread
-- Returns:
- the plugin task
-
executePluginOnThread
-
executePluginOnThread
-
executePluginOnThread
-
executePluginOnThread
public static PhonTask executePluginOnThread(IPluginEntryPoint ep, Map<String, Object> args, PhonWorker thread) -
executePluginOnNewThread
Execute plugin a new thread- Returns:
- the plugin task
-
executePluginOnNewThread
-
executePluginOnNewThread
-
executePluginOnNewThread
-
executePluginOnNewThread
-