|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.exolab.jms.events.Event
This class specifies the object that is used by the EventManager
.
It defines the event type, the event listener and the callback object.
The event type is an integral value that identifies the type of event to
fire. It is transparent to the EventManager
.
The event listener must implement the EventHandler
interface.
The callback object must be Serializable
and is passed back to the
EventHandler
when the event fires.
Most importantly this class is Serializable
so that it can be
stored, if required.
Constructor Summary | |
Event(int event,
EventHandler listener,
java.lang.Object callback)
The constructor instantiates an instance of this class with the specified parameters. |
Method Summary | |
java.lang.Object |
getCallbackObject()
Return a reference to the callbacl object. |
EventHandler |
getEventListener()
Return the event listener |
int |
getEventType()
Return the event type. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Event(int event, EventHandler listener, java.lang.Object callback) throws IllegalEventDefinedException
event
- the type of event to firelistener
- the object that will receive the eventcallback
- a callback object, that is SerializableIllegalEventDefinedException
- Method Detail |
public int getEventType()
public EventHandler getEventListener()
public java.lang.Object getCallbackObject()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |