kaos.domain.management
Interface DomainEvent


public interface DomainEvent

DomainEvent defines operations on an object encapsulating a domain event. Domain event contains a name and a description, representing different characteristics of the event in the form of key-value associations.


Method Summary
 java.util.Map getEventDescription()
          Obtain the event description.
 java.lang.String getEventName()
          Obtain the name of the event.
 void setEventDescription(java.util.Map desc)
          Set the event description.
 void setEventName(java.lang.String name)
          Set the name of the event.
 

Method Detail

getEventDescription

java.util.Map getEventDescription()
Obtain the event description.

Returns:
Map associating key and values describing the domain event.

getEventName

java.lang.String getEventName()
Obtain the name of the event.

Returns:
String naming the event.

setEventDescription

void setEventDescription(java.util.Map desc)
Set the event description.

Parameters:
desc - Map associating key and values describing the domain event.

setEventName

void setEventName(java.lang.String name)
Set the name of the event.