|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Event
Base interface for all events in the application. All classes that represent an event should implement this interface.
Consider implementing one of the abstract subclasses to categorize events into one of three categories:DomainEvent: Events that represent a state change of an aggregate. ApplicationEvent: Events that do not represent a state change of an aggregate, but do have
an important meaning to the application. SystemEvent: Events that represent a state change or
notification of a subsystem. These events typically notify the application that part of it is not available.
DomainEvent,
ApplicationEvent,
SystemEvent| Method Summary | |
|---|---|
UUID |
getEventIdentifier()
Returns the identifier of this event. |
EventMetaData |
getMetaData()
Returns the meta data for this event. |
Serializable |
getMetaDataValue(String key)
Returns the value registered in the meta data under the given key. |
org.joda.time.LocalDateTime |
getTimestamp()
Returns the timestamp of this event. |
| Method Detail |
|---|
UUID getEventIdentifier()
org.joda.time.LocalDateTime getTimestamp()
EventMetaData getMetaData()
Serializable getMetaDataValue(String key)
key. If no value is known for the
given key, this method returns null.
key - The key of the meta data entry
null if the key wasn't found
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||