You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by ge...@apache.org on 2005/10/12 20:56:51 UTC
svn commit: r314997 -
/jakarta/commons/proper/chain/trunk/src/java/org/apache/commons/chain/Command.java
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