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 booleandoExecute(CliCommand cmd, org.apache.commons.cli2.CommandLine cl)booleanexecute(String line)booleanexecute(String[] args)booleanexecute(org.apache.commons.cli2.CommandLine cl)AbstractApplicationgetApplication()protected org.apache.commons.cli2.util.HelpFormattergetCmdHelpFormatter(CliCommand cmd)protected CliCommandgetCommand(String name)org.apache.commons.cli2.GroupgetCommandsGroup()voidinstallCommand(CliCommand c)voidprintHelp(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
-
-