Made Event and its implementations serializable
This commit is contained in:
parent
dee7d2245f
commit
1fba872558
@ -1,5 +1,7 @@
|
||||
package envoy.event;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* Project: <strong>envoy-common</strong><br>
|
||||
* File: <strong>Event.java</strong><br>
|
||||
@ -9,7 +11,7 @@ package envoy.event;
|
||||
* @param <T> the type of the Event
|
||||
* @since Envoy v0.2-alpha
|
||||
*/
|
||||
public interface Event<T> {
|
||||
public interface Event<T> extends Serializable {
|
||||
|
||||
/**
|
||||
* @return the data associated with this event
|
||||
|
@ -11,4 +11,6 @@ package envoy.event;
|
||||
* @author Kai S. K. Engelbart
|
||||
*/
|
||||
public class IdGeneratorRequest implements Event<Void> {
|
||||
|
||||
private static final long serialVersionUID = 1431107413883364583L;
|
||||
}
|
||||
|
@ -18,6 +18,8 @@ public class MessageStatusChangeEvent implements Event<Message.MessageStatus> {
|
||||
private final Message.MessageStatus status;
|
||||
private final Date date;
|
||||
|
||||
private static final long serialVersionUID = 4566145392192761313L;
|
||||
|
||||
/**
|
||||
* Initializes a {@link MessageStatusChangeEvent}.
|
||||
*
|
||||
|
Reference in New Issue
Block a user