commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ra...@apache.org
Subject svn commit: r676124 - /commons/proper/scxml/branches/J6/src/main/java/org/apache/commons/scxml/TriggerEvent.java
Date Sat, 12 Jul 2008 03:32:22 GMT
Author: rahul
Date: Fri Jul 11 20:32:21 2008
New Revision: 676124

URL: http://svn.apache.org/viewvc?rev=676124&view=rev
Log:
Port r676123 from trunk.
Make TriggerEvent class Serializable.
SCXML-75
Suggested by Daniel Schwager <daniel dot schwager at dtnet dot de>

Modified:
    commons/proper/scxml/branches/J6/src/main/java/org/apache/commons/scxml/TriggerEvent.java

Modified: commons/proper/scxml/branches/J6/src/main/java/org/apache/commons/scxml/TriggerEvent.java
URL: http://svn.apache.org/viewvc/commons/proper/scxml/branches/J6/src/main/java/org/apache/commons/scxml/TriggerEvent.java?rev=676124&r1=676123&r2=676124&view=diff
==============================================================================
--- commons/proper/scxml/branches/J6/src/main/java/org/apache/commons/scxml/TriggerEvent.java
(original)
+++ commons/proper/scxml/branches/J6/src/main/java/org/apache/commons/scxml/TriggerEvent.java
Fri Jul 11 20:32:21 2008
@@ -16,19 +16,27 @@
  */
 package org.apache.commons.scxml;
 
+import java.io.Serializable;
+
 /**
  * A class representing an event. Specific event types have been
  * defined in reference to SCXML.
  *
+ * <b>NOTE:</b> Instances are {@link Serializable} as long as the associated
+ * payload, if any, is {@link Serializable}.
+ *
  */
-public class TriggerEvent {
+public class TriggerEvent implements Serializable {
+
+    /** Serial version UID. */
+    private static final long serialVersionUID = 1L;
 
     /**
      * Constructor.
      *
      * @param name The event name
      * @param type The event type
-     * @param payload The event payload
+     * @param payload The event payload, must be {@link Serializable}
      */
     public TriggerEvent(final String name, final int type,
             final Object payload) {



Mime
View raw message