Class ExecutionContext

java.lang.Object
java.util.AbstractMap<String,Object>
java.util.HashMap<String,Object>
io.vertx.core.spi.launcher.ExecutionContext
All Implemented Interfaces:
Serializable, Cloneable, Map<String,Object>

public class ExecutionContext extends HashMap<String,Object>
The execution context contains various information on the execution.
See Also:
  • Constructor Details

    • ExecutionContext

      public ExecutionContext(Command command, io.vertx.core.impl.launcher.VertxCommandLauncher launcher, CommandLine commandLine)
      Creates a new instance of ExecutionContext.
      Parameters:
      command - the command instance that is executed
      launcher - the launcher class
      commandLine - the command line
  • Method Details

    • command

      public Command command()
      Returns:
      the command line object.
    • launcher

      public io.vertx.core.impl.launcher.VertxCommandLauncher launcher()
      Returns:
      the launcher.
    • cli

      public CLI cli()
      Returns:
      the CLI.
    • commandLine

      public CommandLine commandLine()
      Returns:
      the CommandLine.
    • execute

      public void execute(String command, String... args)
      Executes another command.
      Parameters:
      command - the command name
      args - the arguments
    • main

      public Object main()
      Returns:
      the Main-Class object.
    • getPrintStream

      public PrintStream getPrintStream()
      Returns:
      the PrintStream on which command can write.