-
- Enclosing class:
- Launcher
public static interface Launcher.Context
Context for launching child processes.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default Optional<File>
autoRunFile()
Provide an optional file to be run on launch, eg.ProcessBuilder
createChildProcessBuilder(List<String> javaOptions, List<String> arguments)
Create aProcessBuilder
to launch another instance of this process.
-
-
-
Method Detail
-
createChildProcessBuilder
ProcessBuilder createChildProcessBuilder(List<String> javaOptions, List<String> arguments)
Create aProcessBuilder
to launch another instance of this process.- Parameters:
javaOptions
- additional JVM options to pass to processarguments
- additional command line arguments for process- Returns:
- process builder
-
autoRunFile
default Optional<File> autoRunFile()
Provide an optional file to be run on launch, eg. for embedding the launcher in a project. If the context provides an auto-run file and the file option is specified, an exception will be thrown on launch. An implementation that doesn't want this behaviour should return an empty optional if a file is specified.- Returns:
- optional file to run on launch
-
-