james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nor...@apache.org
Subject svn commit: r1178142 - /james/mailbox/trunk/api/src/main/java/org/apache/james/mailbox/MailboxListener.java
Date Sun, 02 Oct 2011 08:09:08 GMT
Author: norman
Date: Sun Oct  2 08:09:08 2011
New Revision: 1178142

URL: http://svn.apache.org/viewvc?rev=1178142&view=rev
Log:
Make MailboxListener.Event implement Serializable. See MAILBOX-147

Modified:
    james/mailbox/trunk/api/src/main/java/org/apache/james/mailbox/MailboxListener.java

Modified: james/mailbox/trunk/api/src/main/java/org/apache/james/mailbox/MailboxListener.java
URL: http://svn.apache.org/viewvc/james/mailbox/trunk/api/src/main/java/org/apache/james/mailbox/MailboxListener.java?rev=1178142&r1=1178141&r2=1178142&view=diff
==============================================================================
--- james/mailbox/trunk/api/src/main/java/org/apache/james/mailbox/MailboxListener.java (original)
+++ james/mailbox/trunk/api/src/main/java/org/apache/james/mailbox/MailboxListener.java Sun
Oct  2 08:09:08 2011
@@ -19,6 +19,7 @@
 
 package org.apache.james.mailbox;
 
+import java.io.Serializable;
 import java.util.List;
 
 
@@ -41,7 +42,8 @@ public interface MailboxListener {
     /**
      * A mailbox event.
      */
-    public class Event {
+    @SuppressWarnings("serial")
+    public abstract class Event implements Serializable {
         private final MailboxSession session;
         private final MailboxPath path;
 
@@ -75,6 +77,11 @@ public interface MailboxListener {
      */
     public class MailboxDeletion extends Event {
 
+        /**
+         * 
+         */
+        private static final long serialVersionUID = 1L;
+
         public MailboxDeletion(final MailboxSession session, MailboxPath path) {
             super(session, path);
         }
@@ -84,6 +91,11 @@ public interface MailboxListener {
      * Indicates that a mailbox has been Added.
      */
     public class MailboxAdded extends Event {
+        /**
+         * 
+         */
+        private static final long serialVersionUID = 1L;
+
         public MailboxAdded(final MailboxSession session, MailboxPath path) {
             super(session, path);
         }
@@ -93,6 +105,11 @@ public interface MailboxListener {
      * Indicates that a mailbox has been renamed.
      */
     public abstract class MailboxRenamed extends Event {
+        /**
+         * 
+         */
+        private static final long serialVersionUID = 1L;
+
         public MailboxRenamed(final MailboxSession session, MailboxPath path) {
             super(session, path);
         }
@@ -110,6 +127,11 @@ public interface MailboxListener {
      */
     public abstract class MessageEvent extends Event {
 
+        /**
+         * 
+         */
+        private static final long serialVersionUID = 1L;
+
         public MessageEvent(MailboxSession session, MailboxPath path) {
             super(session, path);
         }
@@ -124,6 +146,11 @@ public interface MailboxListener {
 
     public abstract class Expunged extends MessageEvent {
 
+        /**
+         * 
+         */
+        private static final long serialVersionUID = 1L;
+
         public Expunged(MailboxSession session, MailboxPath path) {
             super(session, path);
         }
@@ -141,6 +168,11 @@ public interface MailboxListener {
      */
     public abstract class FlagsUpdated extends MessageEvent {
 
+        /**
+         * 
+         */
+        private static final long serialVersionUID = 1L;
+
         public FlagsUpdated(MailboxSession session, MailboxPath path) {
             super(session, path);
         }
@@ -153,6 +185,11 @@ public interface MailboxListener {
      */
     public abstract class Added extends MessageEvent {
 
+        /**
+         * 
+         */
+        private static final long serialVersionUID = 1L;
+
         public Added(MailboxSession session, MailboxPath path) {
             super(session, path);
         }



---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


Mime
View raw message