Annotation Interface Message
name() and version() for more specific
Message annotation.
Furthermore, allows for annotation scanning on a more generic level than per message type.
- Since:
- 5.0.0
- Author:
- Steven van Beelen
-
Required Element Summary
Required Elements -
Optional Element Summary
Optional Elements
-
Element Details
-
namespace
String namespaceThe namespace or (bounded) context of the annotated message.Will typically be mapped to the
QualifiedName.namespace(). Whenever this attribute is defined, thename()will become theQualifiedName.localName(). Together they would form theQualifiedName.name().- Returns:
- The namespace or (bounded) context of the annotated message.
- Default:
""
-
name
String nameThe business or domain name of the annotated message.Will typically be mapped to a
QualifiedName(String)and inserted into aMessageType. By using the String-based constructor of theQualifiedName, this field will represent the combination of theQualifiedName.localName()andQualifiedName.namespace().If the
namespace()has also been specified, this attribute will reflect theQualifiedName.localName()only.- Returns:
- The business or domain name of the annotated message.
- Default:
""
-
version
String versionThe version of the annotated message.Will typically be mapped to the
MessageType.version(). Defaults toMessageType.DEFAULT_VERSION.- Returns:
- The version of the annotated message.
- Default:
"0.0.1"
-
messageType
The type ofMessagethis annotation applies to.- Returns:
- The type of
Messagethis annotation applies to.
-