Top Description Fields Constructors Methods
io.vertx.core.spi.launcher

public Class ExecutionContext

extends HashMap<String, Object>
Class Inheritance
Imports
io.vertx.core.cli.CLI, .CommandLine, io.vertx.core.impl.launcher.VertxCommandLauncher, java.io.PrintStream, java.util.HashMap

The execution context contains various information on the execution.

Field Summary

Modifier and TypeField and Description
private final Command
private final CommandLine
private final VertxCommandLauncher

Constructor Summary

AccessConstructor and Description
public
ExecutionContext(Command
the command instance that is executed
command
,
VertxCommandLauncher
the launcher class
launcher
,
CommandLine
the command line
commandLine
)

Creates a new instance of ExecutionContext.

Method Summary

Modifier and TypeMethod and Description
public CLI

Returns:

the CLI.
cli
()

public Command

Returns:

the command line object.
command
()

public CommandLine

Returns:

the CommandLine.
commandLine
()

public void
execute(String
the command name
command
,
String...
the arguments
args
)

Executes another command.

public PrintStream

Returns:

the PrintStream on which command can write.
getPrintStream
()

public VertxCommandLauncher

Returns:

the launcher.
launcher
()

public Object

Returns:

the Main-Class object.
main
()

Inherited from java.util.HashMap:
clearclonecomputecomputeIfAbsentcomputeIfPresentcontainsKeycontainsValueentrySetforEachgetgetOrDefaultisEmptykeySetmergenewHashMapputputAllputIfAbsentremoveremovereplacereplacereplaceAllsizevalues

Field Detail

commandback to summary
private final Command command
commandLineback to summary
private final CommandLine commandLine
launcherback to summary
private final VertxCommandLauncher launcher

Constructor Detail

ExecutionContextback to summary
public ExecutionContext(Command command, VertxCommandLauncher launcher, CommandLine commandLine)

Creates a new instance of ExecutionContext.

Parameters
command:Command

the command instance that is executed

launcher:VertxCommandLauncher

the launcher class

commandLine:CommandLine

the command line

Method Detail

cliback to summary
public CLI cli()
Returns:CLI

the CLI.

commandback to summary
public Command command()
Returns:Command

the command line object.

commandLineback to summary
public CommandLine commandLine()
Returns:CommandLine

the CommandLine.

executeback to summary
public void execute(String command, String... args)

Executes another command.

Parameters
command:String

the command name

args:String[]

the arguments

getPrintStreamback to summary
public PrintStream getPrintStream()
Returns:PrintStream

the PrintStream on which command can write.

launcherback to summary
public VertxCommandLauncher launcher()
Returns:VertxCommandLauncher

the launcher.

mainback to summary
public Object main()
Returns:Object

the Main-Class object.