expectj
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.

Author:
Johan Walles, johan.walles@gmail.com
See Also:
ExpectJ.spawn(String)

Method Summary
 Process execute()
          Creates a new process.
 String toString()
          Describes what execute() created.
 

Method Detail

execute

Process execute()
                throws IOException
Creates a new process. This will only be called once.

Returns:
The new process.
Throws:
IOException - if there's a problem starting the new process.
See Also:
toString()

toString

String toString()
Describes what execute() created.

Overrides:
toString in class Object
Returns:
A short description of what execute() returns.


Copyright © 2010. All Rights Reserved.