commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ra...@apache.org
Subject svn commit: r356865 - in /jakarta/commons/sandbox/scxml/trunk: ./ src/main/java/org/apache/commons/scxml/ src/main/java/org/apache/commons/scxml/env/ src/main/java/org/apache/commons/scxml/semantics/
Date Wed, 14 Dec 2005 20:48:52 GMT
Author: rahul
Date: Wed Dec 14 12:48:47 2005
New Revision: 356865

URL: http://svn.apache.org/viewcvs?rev=356865&view=rev
Log:
Pass <send>'s externalNodes on EventDispatcher callback. Nudge by Mike Sparr.

Comment out a checkstyle warning for which we have a legitimate usecase.

Modified:
    jakarta/commons/sandbox/scxml/trunk/scxml-checks.xml
    jakarta/commons/sandbox/scxml/trunk/src/main/java/org/apache/commons/scxml/EventDispatcher.java
    jakarta/commons/sandbox/scxml/trunk/src/main/java/org/apache/commons/scxml/env/SimpleDispatcher.java
    jakarta/commons/sandbox/scxml/trunk/src/main/java/org/apache/commons/scxml/semantics/SCXMLSemanticsImpl.java

Modified: jakarta/commons/sandbox/scxml/trunk/scxml-checks.xml
URL: http://svn.apache.org/viewcvs/jakarta/commons/sandbox/scxml/trunk/scxml-checks.xml?rev=356865&r1=356864&r2=356865&view=diff
==============================================================================
--- jakarta/commons/sandbox/scxml/trunk/scxml-checks.xml (original)
+++ jakarta/commons/sandbox/scxml/trunk/scxml-checks.xml Wed Dec 14 12:48:47 2005
@@ -128,7 +128,7 @@
         <module name="FileLength"/>
         <module name="LineLength"/>
         <module name="MethodLength"/>
-        <module name="ParameterNumber"/>
+        <!--module name="ParameterNumber"/-->
 
 
         <!-- Checks for whitespace                               -->

Modified: jakarta/commons/sandbox/scxml/trunk/src/main/java/org/apache/commons/scxml/EventDispatcher.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/sandbox/scxml/trunk/src/main/java/org/apache/commons/scxml/EventDispatcher.java?rev=356865&r1=356864&r2=356865&view=diff
==============================================================================
--- jakarta/commons/sandbox/scxml/trunk/src/main/java/org/apache/commons/scxml/EventDispatcher.java
(original)
+++ jakarta/commons/sandbox/scxml/trunk/src/main/java/org/apache/commons/scxml/EventDispatcher.java
Wed Dec 14 12:48:47 2005
@@ -17,6 +17,7 @@
  */
 package org.apache.commons.scxml;
 
+import java.util.List;
 import java.util.Map;
 
 /**
@@ -48,9 +49,12 @@
      * @param hints The data containing information which may be
      *  used by the implementing platform to configure the event processor
      * @param delay The event is dispatched after the delay interval elapses
+     * @param externalNodes The list of external nodes associated with
+     *  the &lt;send&gt; element.
      */
     void send(String sendId, String target, String targetType,
-            String event, Map params, Object hints, long delay);
+            String event, Map params, Object hints, long delay,
+            List externalNodes);
 
 }
 

Modified: jakarta/commons/sandbox/scxml/trunk/src/main/java/org/apache/commons/scxml/env/SimpleDispatcher.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/sandbox/scxml/trunk/src/main/java/org/apache/commons/scxml/env/SimpleDispatcher.java?rev=356865&r1=356864&r2=356865&view=diff
==============================================================================
--- jakarta/commons/sandbox/scxml/trunk/src/main/java/org/apache/commons/scxml/env/SimpleDispatcher.java
(original)
+++ jakarta/commons/sandbox/scxml/trunk/src/main/java/org/apache/commons/scxml/env/SimpleDispatcher.java
Wed Dec 14 12:48:47 2005
@@ -17,6 +17,7 @@
  */
 package org.apache.commons.scxml.env;
 
+import java.util.List;
 import java.util.Map;
 
 import org.apache.commons.logging.Log;
@@ -50,11 +51,11 @@
     }
 
     /**
-     * @see EventDispatcher#send(String,String,String,String,Map,Object,long)
+    @see EventDispatcher#send(String,String,String,String,Map,Object,long,List)
      */
     public void send(final String sendId, final String target,
             final String targetType, final String event, final Map params,
-            final Object hints, final long delay) {
+            final Object hints, final long delay, final List externalNodes) {
         if (log.isInfoEnabled()) {
             StringBuffer buf = new StringBuffer();
             buf.append("send ( sendId: ").append(sendId);

Modified: jakarta/commons/sandbox/scxml/trunk/src/main/java/org/apache/commons/scxml/semantics/SCXMLSemanticsImpl.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/sandbox/scxml/trunk/src/main/java/org/apache/commons/scxml/semantics/SCXMLSemanticsImpl.java?rev=356865&r1=356864&r2=356865&view=diff
==============================================================================
--- jakarta/commons/sandbox/scxml/trunk/src/main/java/org/apache/commons/scxml/semantics/SCXMLSemanticsImpl.java
(original)
+++ jakarta/commons/sandbox/scxml/trunk/src/main/java/org/apache/commons/scxml/semantics/SCXMLSemanticsImpl.java
Wed Dec 14 12:48:47 2005
@@ -261,7 +261,7 @@
                 }
                 evtDispatcher.send(snd.getSendid(),
                         snd.getTarget(), snd.getTargettype(), snd.getEvent(),
-                        params, hints, wait);
+                        params, hints, wait, snd.getExternalNodes());
             } else if (a instanceof Var) {
                 Var vr = (Var) a;
                 String varName = vr.getName();



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