org.keel.services.event
Interface Event
- All Superinterfaces:
- java.io.Serializable
- All Known Implementing Classes:
- DefaultEvent, OpenJMSEvent
- public interface Event
- extends java.io.Serializable
Events are posted to an EventManager by the object originating the Event. The EventManager then takes care of notifying all of the registered listeners that the event has taken place
| Field Summary |
static java.lang.String |
ROLE
|
| Method Summary |
java.util.Map |
getDetails()
An Event may provide a Map of details, these details being any arbitrary attributes that the Event wants to supply to listeners. |
java.lang.String |
getIdentifier()
Get the identifier that indicates what kind of Event this is |
java.lang.Object |
getPostedBy()
Return the object that originally posted this event, if available |
void |
setDetails(java.util.Map m)
|
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. |
ROLE
public static final java.lang.String ROLE
-
- See Also:
- Constant Field Values
setIdentifier
public void setIdentifier(java.lang.String newIdent)
-
Set the identifier that indicates the type of this event.
-
-
setPostedBy
public void setPostedBy(java.lang.Object e)
-
Set the reference to the object that posted this event. Not all Events support this.
-
-
getPostedBy
public java.lang.Object getPostedBy()
-
Return the object that originally posted this event, if available
-
-
getIdentifier
public java.lang.String getIdentifier()
-
Get the identifier that indicates what kind of Event this is
-
-
getDetails
public java.util.Map getDetails()
-
An Event may provide a Map of details, these details being any arbitrary attributes that the Event wants to supply to listeners. These may further identify the Event, pass on data, or supply any other Event-specific need.
-
-
setDetails
public void setDetails(java.util.Map m)
-
-
Please see keelframework.org for information about new Keel releases.