Interface Executor


  • public interface Executor
    This interface exists for people who want control over how processes are launched.

    Implementors are encouraged to implement toString() for logging purposes.

    See Also:
    ExpectJ.spawn(String)
    • 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()
      • toString

        java.lang.String toString()
        Describes what execute() created.
        Overrides:
        toString in class java.lang.Object
        Returns:
        A short description of what execute() returns.