Class ExecutionContext
- java.lang.Object
-
- org.apache.jackrabbit.vault.util.console.ExecutionContext
-
- Direct Known Subclasses:
ConsoleExecutionContext
,VltExecutionContext
public class ExecutionContext extends Object
Console
...
-
-
Constructor Summary
Constructors Constructor Description ExecutionContext(AbstractApplication app)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
doExecute(CliCommand cmd, org.apache.commons.cli2.CommandLine cl)
boolean
execute(String line)
boolean
execute(String[] args)
boolean
execute(org.apache.commons.cli2.CommandLine cl)
AbstractApplication
getApplication()
protected org.apache.commons.cli2.util.HelpFormatter
getCmdHelpFormatter(CliCommand cmd)
protected CliCommand
getCommand(String name)
org.apache.commons.cli2.Group
getCommandsGroup()
void
installCommand(CliCommand c)
void
printHelp(String cmd)
-
-
-
Field Detail
-
commands
protected final ArrayList commands
list of commands
-
-
Constructor Detail
-
ExecutionContext
public ExecutionContext(AbstractApplication app)
-
-
Method Detail
-
printHelp
public void printHelp(String cmd)
-
getApplication
public AbstractApplication getApplication()
-
getCmdHelpFormatter
protected org.apache.commons.cli2.util.HelpFormatter getCmdHelpFormatter(CliCommand cmd)
-
getCommandsGroup
public org.apache.commons.cli2.Group getCommandsGroup()
-
installCommand
public void installCommand(CliCommand c)
-
getCommand
protected CliCommand getCommand(String name)
-
execute
public boolean execute(String line)
-
execute
public boolean execute(String[] args)
-
execute
public boolean execute(org.apache.commons.cli2.CommandLine cl)
-
doExecute
protected boolean doExecute(CliCommand cmd, org.apache.commons.cli2.CommandLine cl) throws Exception
- Throws:
Exception
-
-