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
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait |
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
EventBusEventObject
private EventBusEventObject()
- Serializable needs a default constructor
EventBusEventObject
public EventBusEventObject(String className,
String methodName,
Serializable data)
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