net.groboclown.eventbus.v2
Class EventBusEventObject

java.lang.Object
  |
  +--net.groboclown.eventbus.v2.EventBusEventObject
All Implemented Interfaces:
Serializable

public class EventBusEventObject
extends Object
implements Serializable

The EventBusEvent data object used by EventBus events. This define a "class" and "method", as well as data object.

Version:
Alpha 0.9.0
Author:
Matt Albrecht
See Also:
Serialized Form

Field Summary
private  String className
           
private  Serializable data
           
static String EVENTBUS_CLASS
           
static String LISTENER_ADDED_METHOD
           
static String LISTENER_REMOVED_METHOD
           
private  String methodName
           
(package private) static long serialVersionUID
           
 
Constructor Summary
private EventBusEventObject()
          Serializable needs a default constructor
  EventBusEventObject(String className, String methodName, Serializable data)
           
 
Method Summary
 String getClassName()
           
 Serializable getData()
           
 String getMethodName()
           
private  void readObject(ObjectInputStream in)
          Explicitly read the input so we can always maintain backwards compatibility.
private  void writeObject(ObjectOutputStream out)
          Explicitly write the output so we can always maintain backwards compatibility.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

EVENTBUS_CLASS

public static final String EVENTBUS_CLASS

LISTENER_ADDED_METHOD

public static final String LISTENER_ADDED_METHOD

LISTENER_REMOVED_METHOD

public static final String LISTENER_REMOVED_METHOD

serialVersionUID

static final long serialVersionUID

className

private String className

methodName

private String methodName

data

private Serializable data
Constructor Detail

EventBusEventObject

private EventBusEventObject()
Serializable needs a default constructor

EventBusEventObject

public EventBusEventObject(String className,
                           String methodName,
                           Serializable data)
Method Detail

getClassName

public String getClassName()

getMethodName

public String getMethodName()

getData

public Serializable getData()

writeObject

private void writeObject(ObjectOutputStream out)
                  throws IOException
Explicitly write the output so we can always maintain backwards compatibility.

readObject

private void readObject(ObjectInputStream in)
                 throws IOException,
                        ClassNotFoundException
Explicitly read the input so we can always maintain backwards compatibility.


Written under the LGPL