Package net.rubygrapefruit.platform
Interface ProcessLauncher
-
- All Superinterfaces:
NativeIntegration
- All Known Implementing Classes:
DefaultProcessLauncher,WindowsProcessLauncher,WrapperProcessLauncher
public interface ProcessLauncher extends NativeIntegration
Used to start processes, taking care of some platform-specific issues when launching processes concurrently or launching processes that will run in the background.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.Processstart(java.lang.ProcessBuilder processBuilder)Starts a process from the given settings.
-
-
-
Method Detail
-
start
java.lang.Process start(java.lang.ProcessBuilder processBuilder) throws NativeExceptionStarts a process from the given settings.- Parameters:
processBuilder- The process settings.- Returns:
- the process
- Throws:
NativeException- On failure to start the process.
-
-