Interface IProcessLauncherHook
-
public interface IProcessLauncherHook
Hook class for applying last-minute changes to the ncommProcessBuilder
before a new subprocess is spawned.
-
-
Field Summary
Fields Modifier and Type Field Description static IProcessLauncherHook
NULL_HOOK
No-op IProcessLauncherHook
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
afterLaunch(java.lang.Process p)
Called after a new process is spawned.void
beforeLaunch(java.lang.ProcessBuilder pb)
Called before a new process is spawned.
-
-
-
Field Detail
-
NULL_HOOK
static final IProcessLauncherHook NULL_HOOK
No-op IProcessLauncherHook
-
-
Method Detail
-
beforeLaunch
void beforeLaunch(java.lang.ProcessBuilder pb) throws java.io.IOException
Called before a new process is spawned.- Parameters:
pb
- - ProcessBuilder instance- Throws:
java.io.IOException
- on error
-
afterLaunch
void afterLaunch(java.lang.Process p) throws java.io.IOException
Called after a new process is spawned.- Parameters:
p
- - Process instance- Throws:
java.io.IOException
- on error
-
-