Annotation Interface Event
Annotation used to mark an object as an event.
Allows for specifying the business/domain name() of the event and the version() of the event. The
fields are used to map an annotated-event to a EventMessage.
- Since:
- 5.0.0
- Author:
- Steven van Beelen
-
Optional Element Summary
Optional Elements
-
Element Details
-
namespace
String namespaceThe namespace or (bounded) context of the event.Is used to define the
QualifiedName.namespace()of a fully qualified name.Defaults to the package name of the annotated class.
- Returns:
- The namespace or (bounded) context of the event.
- See Also:
- Default:
""
-
name
String nameThe business or domain name of the event.Is used to define the
QualifiedName.localName()of a fully qualified name.Defaults to the simple name of the annotated class. Note that when a nested class is annotated, the simple name does not include the names of the enclosing classes.
- Returns:
- The business or domain name of the event.
- See Also:
- Default:
""
-
version
String versionThe version of the event.Will typically be mapped to the
MessageType.version(). Defaults toMessageType.DEFAULT_VERSION.- Returns:
- The version of the event.
- Default:
"0.0.1"
-