public class ScriptExecBase extends Object implements StallionRunAction<ScriptOptions>
| Constructor and Description |
|---|
ScriptExecBase() |
| Modifier and Type | Method and Description |
|---|---|
void |
execute(ScriptOptions options)
Actually do the action.
|
void |
executeJavascript(String source,
URL url,
String scriptPath,
String folder,
List<String> args,
String plugin) |
String |
getActionName()
The name of the action, will be used on the command line to run the action.
|
String |
getHelp()
A friendly description of what the action does, will be printed on the command-line
when help is asked for.
|
void |
loadApp(ScriptOptions options)
Load the application context.
|
ScriptOptions |
newCommandOptions()
Each action might have its own command-line arguments.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetSubActionNamepublic ScriptExecBase()
public ScriptOptions newCommandOptions()
StallionRunActionnewCommandOptions in interface StallionRunAction<ScriptOptions>public String getActionName()
StallionRunActiongetActionName in interface StallionRunAction<ScriptOptions>public String getHelp()
StallionRunActiongetHelp in interface StallionRunAction<ScriptOptions>public void loadApp(ScriptOptions options)
StallionRunActionloadApp in interface StallionRunAction<ScriptOptions>public void execute(ScriptOptions options) throws Exception
StallionRunActionexecute in interface StallionRunAction<ScriptOptions>ExceptionCopyright © 2016. All rights reserved.