Interface Executor
-
public interface Executor
This interface exists for people who want control over how processes are launched. Implementors are encouraged to implementtoString()
for logging purposes.- See Also:
ExpectJ.spawn(String)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.Process
execute()
Creates a new process.java.lang.String
toString()
Describes whatexecute()
created.
-
-
-
Method Detail
-
execute
java.lang.Process execute() throws java.io.IOException
Creates a new process. This will only be called once.- Returns:
- The new process.
- Throws:
java.io.IOException
- if there's a problem starting the new process.- See Also:
toString()
-
-