commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From germu...@apache.org
Subject svn commit: r314997 - /jakarta/commons/proper/chain/trunk/src/java/org/apache/commons/chain/Command.java
Date Wed, 12 Oct 2005 18:56:51 GMT
Author: germuska
Date: Wed Oct 12 11:56:48 2005
New Revision: 314997

URL: http://svn.apache.org/viewcvs?rev=314997&view=rev
Log:
add constants to help keep return intentions clear

Modified:
    jakarta/commons/proper/chain/trunk/src/java/org/apache/commons/chain/Command.java

Modified: jakarta/commons/proper/chain/trunk/src/java/org/apache/commons/chain/Command.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/chain/trunk/src/java/org/apache/commons/chain/Command.java?rev=314997&r1=314996&r2=314997&view=diff
==============================================================================
--- jakarta/commons/proper/chain/trunk/src/java/org/apache/commons/chain/Command.java (original)
+++ jakarta/commons/proper/chain/trunk/src/java/org/apache/commons/chain/Command.java Wed
Oct 12 11:56:48 2005
@@ -78,7 +78,19 @@
 
 public interface Command {
 
+    /**
+     * <p>Commands should return <code>CONTINUE_PROCESSING</code> if the
processing
+     *  of the given {@link Context} should be delegated to a subsequent
+     *  {@link Command} in an enclosing {@link Chain}</p>
+     */
+    public static final boolean CONTINUE_PROCESSING = false;
 
+    /**
+     * <p>Commands should return <code>PROCESSING_COMPLETE</code>
+     * if the processing of the given {@link Context}
+     *  has been completed.</p>
+     */
+    public static final boolean PROCESSING_COMPLETE = true;
     /**
      * <p>Execute a unit of processing work to be performed.  This
      * {@link Command} may either complete the required processing



---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message