You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mina.apache.org by gn...@apache.org on 2011/07/01 10:10:12 UTC

svn commit: r1141863 - /mina/sshd/trunk/sshd-core/src/main/java/org/apache/sshd/server/Command.java

Author: gnodet
Date: Fri Jul  1 08:10:11 2011
New Revision: 1141863

URL: http://svn.apache.org/viewvc?rev=1141863&view=rev
Log:
[SSHD-119] more specific docstring for Command interface

Modified:
    mina/sshd/trunk/sshd-core/src/main/java/org/apache/sshd/server/Command.java

Modified: mina/sshd/trunk/sshd-core/src/main/java/org/apache/sshd/server/Command.java
URL: http://svn.apache.org/viewvc/mina/sshd/trunk/sshd-core/src/main/java/org/apache/sshd/server/Command.java?rev=1141863&r1=1141862&r2=1141863&view=diff
==============================================================================
--- mina/sshd/trunk/sshd-core/src/main/java/org/apache/sshd/server/Command.java (original)
+++ mina/sshd/trunk/sshd-core/src/main/java/org/apache/sshd/server/Command.java Fri Jul  1 08:10:11 2011
@@ -59,6 +59,13 @@ public interface Command {
     /**
      * Starts the shell.
      * All streams must have been set before calling this method.
+     * The command should implement Runnable, and this method
+     * should spawn a new thread like:
+     * <pre>
+     * {@code
+     * Thread(this).start();
+     * }
+     * </pre>
      *
      * @param env
      * @throws java.io.IOException