After working on a servlet with catalog support for the cookbook, I
would like to suggest the following modification to the Command
interface for better readability of implementations of the interface:
Index: Command.java
===================================================================
--- Command.java (revision 1307931)
+++ Command.java (working copy)
@@ -84,6 +84,10 @@
*/
public interface Command<K, V, C extends Map<K, V>> {
+ /** Boolean value to return when processing is complete. */
+ public static final boolean COMPLETE = true;
+ /** Boolean value to return when processing is not complete. */
+ public static final boolean INCOMPLETE = false;
/**
* <p>Commands should return <code>CONTINUE_PROCESSING</code> if
the processing
I think that the simple addition of a named flag for complete or
incomplete processing of the chain is more understandable than the
current boolean value. Currently, "false" means keep processing and
"true" means stop processing.
Thanks,
-Elijah
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]