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, wait
getSubActionName
public ScriptExecBase()
public ScriptOptions newCommandOptions()
StallionRunAction
newCommandOptions
in interface StallionRunAction<ScriptOptions>
public String getActionName()
StallionRunAction
getActionName
in interface StallionRunAction<ScriptOptions>
public String getHelp()
StallionRunAction
getHelp
in interface StallionRunAction<ScriptOptions>
public void loadApp(ScriptOptions options)
StallionRunAction
loadApp
in interface StallionRunAction<ScriptOptions>
public void execute(ScriptOptions options) throws Exception
StallionRunAction
execute
in interface StallionRunAction<ScriptOptions>
Exception
Copyright © 2016. All rights reserved.