commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kohs...@apache.org
Subject svn commit: r377074 - in /jakarta/commons/sandbox/javaflow/trunk: project.properties src/java/org/apache/commons/javaflow/ContinuationDeath.java src/java/org/apache/commons/javaflow/bytecode/ContinuationDeath.java
Date Sat, 11 Feb 2006 22:40:05 GMT
Author: kohsuke
Date: Sat Feb 11 14:40:03 2006
New Revision: 377074

URL: http://svn.apache.org/viewcvs?rev=377074&view=rev
Log:
forgot to commit this change, d'oh!

Added:
    jakarta/commons/sandbox/javaflow/trunk/src/java/org/apache/commons/javaflow/ContinuationDeath.java
  (contents, props changed)
      - copied, changed from r373217, jakarta/commons/sandbox/javaflow/trunk/src/java/org/apache/commons/javaflow/bytecode/ContinuationDeath.java
Removed:
    jakarta/commons/sandbox/javaflow/trunk/src/java/org/apache/commons/javaflow/bytecode/ContinuationDeath.java
Modified:
    jakarta/commons/sandbox/javaflow/trunk/project.properties

Modified: jakarta/commons/sandbox/javaflow/trunk/project.properties
URL: http://svn.apache.org/viewcvs/jakarta/commons/sandbox/javaflow/trunk/project.properties?rev=377074&r1=377073&r2=377074&view=diff
==============================================================================
--- jakarta/commons/sandbox/javaflow/trunk/project.properties (original)
+++ jakarta/commons/sandbox/javaflow/trunk/project.properties Sat Feb 11 14:40:03 2006
@@ -35,5 +35,6 @@
 # Jars set explicity by path.
 # ------------------------------------------------------------------------
 maven.jar.commons-jci = lib/commons-jci-r291284.jar
+#maven.jar.commons-io = lib/commons-io-20050621.133116.jar
 maven.jar.bcel = lib/jakarta-bcel-20050813.jar
 maven.jar.asm-all = lib/asm-all-2.2.1.jar

Copied: jakarta/commons/sandbox/javaflow/trunk/src/java/org/apache/commons/javaflow/ContinuationDeath.java
(from r373217, jakarta/commons/sandbox/javaflow/trunk/src/java/org/apache/commons/javaflow/bytecode/ContinuationDeath.java)
URL: http://svn.apache.org/viewcvs/jakarta/commons/sandbox/javaflow/trunk/src/java/org/apache/commons/javaflow/ContinuationDeath.java?p2=jakarta/commons/sandbox/javaflow/trunk/src/java/org/apache/commons/javaflow/ContinuationDeath.java&p1=jakarta/commons/sandbox/javaflow/trunk/src/java/org/apache/commons/javaflow/bytecode/ContinuationDeath.java&r1=373217&r2=377074&rev=377074&view=diff
==============================================================================
--- jakarta/commons/sandbox/javaflow/trunk/src/java/org/apache/commons/javaflow/bytecode/ContinuationDeath.java
(original)
+++ jakarta/commons/sandbox/javaflow/trunk/src/java/org/apache/commons/javaflow/ContinuationDeath.java
Sat Feb 11 14:40:03 2006
@@ -1,9 +1,36 @@
-package org.apache.commons.javaflow.bytecode;
+package org.apache.commons.javaflow;
+
+import org.apache.commons.javaflow.bytecode.StackRecorder;
 
 /**
- * This exception is used to signal that the continuation
- * wants to exit the execution.
+ * This exception is used to signal
+ * a control flow change that needs
+ * the cooperation inside {@link StackRecorder}.
+ *
+ * <p>
+ * This class is only for javaflow internal code.
  *
  * @author Kohsuke Kawaguchi
  */
-public class ContinuationDeath extends Error {}
+public final class ContinuationDeath extends Error {
+    final String mode;
+
+    public ContinuationDeath(String mode) {
+        this.mode = mode;
+    }
+
+    /**
+     * Signals that the continuation wants to exit the execution.
+     */
+    static final String MODE_EXIT = "exit";
+    /**
+     * Signals that the execution should restart immediately
+     * from where it resumed.
+     */
+    static final String MODE_AGAIN = "again";
+    /**
+     * Signals that the exeuction should suspend,
+     * by using the original continuation.
+     */
+    static final String MODE_CANCEL = "cancel";
+}

Propchange: jakarta/commons/sandbox/javaflow/trunk/src/java/org/apache/commons/javaflow/ContinuationDeath.java
------------------------------------------------------------------------------
    svn:eol-style = native



---------------------------------------------------------------------
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