org.keel.services.event.openjms
Class OpenJMSEvent
java.lang.Object
org.keel.services.event.openjms.OpenJMSEvent
- All Implemented Interfaces:
- Event, java.io.Serializable
- public class OpenJMSEvent
- extends java.lang.Object
- implements Event, java.io.Serializable
Events are posted to an DefaultEventManager by the object originating the DefaultEvent. The DefaultEventManager then takes care of notifying all of the registered listeners that the event has taken place
- See Also:
- Serialized Form
| Fields inherited from interface org.keel.services.event.Event |
ROLE |
| Method Summary |
java.util.Map |
getDetails()
An DefaultEvent may provide a Map of details, these details being any arbitrary attributes that the DefaultEvent wants to supply to listeners. |
java.lang.String |
getIdentifier()
Get the identifier that indicates what kind of DefaultEvent this is |
java.lang.Object |
getPostedBy()
Return the object that originally posted this event, if available |
void |
setDetails(java.util.Map m)
Every object in this Map must be serializable, or it won't go through the JMS process. |
void |
setIdentifier(java.lang.String newIdent)
Set the identifier that indicates the type of this event. |
void |
setPostedBy(java.lang.Object e)
Set the reference to the object that posted this event. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
myIdentifier
protected java.lang.String myIdentifier
-
postedBy
protected transient java.lang.Object postedBy
-
myDetails
protected java.util.Map myDetails
-
OpenJMSEvent
public OpenJMSEvent()
OpenJMSEvent
public OpenJMSEvent(Event e)
-
Initialize an OpenJMSEvent populating it's contents from those of the specified event.
- Parameters:
e -
setIdentifier
public void setIdentifier(java.lang.String newIdent)
-
Set the identifier that indicates the type of this event.
-
- Specified by:
setIdentifier in interface Event
-
setPostedBy
public void setPostedBy(java.lang.Object e)
-
Set the reference to the object that posted this event. Not all Events support this.
-
- Specified by:
setPostedBy in interface Event
-
getPostedBy
public java.lang.Object getPostedBy()
-
Return the object that originally posted this event, if available
-
- Specified by:
getPostedBy in interface Event
-
getIdentifier
public java.lang.String getIdentifier()
-
Get the identifier that indicates what kind of DefaultEvent this is
-
- Specified by:
getIdentifier in interface Event
-
getDetails
public java.util.Map getDetails()
-
An DefaultEvent may provide a Map of details, these details being any arbitrary attributes that the DefaultEvent wants to supply to listeners. These may further identify the DefaultEvent, pass on data, or supply any other DefaultEvent-specific need.
-
- Specified by:
getDetails in interface Event
-
setDetails
public void setDetails(java.util.Map m)
-
Every object in this Map must be serializable, or it won't go through the JMS process. We do a fairly cursory check of the elements in the map (an element could be a collection, after all)
-
- Specified by:
setDetails in interface Event
-
toString
public java.lang.String toString()
-
-
Please see keelframework.org for information about new Keel releases.