Author: sgoeschl
Date: Wed Jan 23 13:27:38 2008
New Revision: 614682
URL: http://svn.apache.org/viewvc?rev=614682&view=rev
Log:
Updated the javadocs
Modified:
commons/sandbox/exec/trunk/src/main/java/org/apache/commons/exec/ExecuteResultHandler.java
Modified:
commons/sandbox/exec/trunk/src/main/java/org/apache/commons/exec/ExecuteResultHandler.java
URL:
http://svn.apache.org/viewvc/commons/sandbox/exec/trunk/src/main/java/org/apache/commons/exec/ExecuteResultHandler.java?rev=614682&r1=614681&r2=614682&view=diff
==============================================================================
---
commons/sandbox/exec/trunk/src/main/java/org/apache/commons/exec/ExecuteResultHandler.java
(original)
+++
commons/sandbox/exec/trunk/src/main/java/org/apache/commons/exec/ExecuteResultHandler.java
Wed Jan 23 13:27:38 2008
@@ -18,8 +18,24 @@
package org.apache.commons.exec;
+/**
+ * The callback handlers for asynchronous execution.
+ *
+ * @see org.apache.commons.exec.Executor#execute(CommandLine, java.util.Map,
ExecuteResultHandler)
+ */
public interface ExecuteResultHandler {
+ /**
+ * The asynchronous exection completed.
+ *
+ * @param exitValue the exit value of the subprocess
+ */
void onProcessComplete(int exitValue);
+
+ /**
+ * The asynchronous exection failed.
+ *
+ * @param e the <code>ExecuteException</code> containing the root cause
+ */
void onProcessFailed(ExecuteException e);
}