Annotation Interface DomainEventPublisher


@Retention(RUNTIME) @Target({METHOD,ANNOTATION_TYPE}) @Documented @Stereotype public @interface DomainEventPublisher
Identifies a domain event publisher, i.e. logic to publish a DomainEvent.
Since:
1.1
Author:
Christian Stettler, Henning Schwentner, Stephan Pirnbaum, Martin Schimak, Oliver Drotbohm
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static enum 
     
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Optional identification of the domain event published by this publisher.
    Marks the type of the publisher, i.e. if the publisher externalizes events or if it creates events for VM internal consumption such as application events.
  • Element Details

    • publishes

      String publishes
      Optional identification of the domain event published by this publisher. This information may be used for easier linkage between event and publisher by external tools and refers to the combination of DomainEvent.namespace() and DomainEvent.name(), separated by '.' (dot)
      Default:
      ""
    • type

      Marks the type of the publisher, i.e. if the publisher externalizes events or if it creates events for VM internal consumption such as application events.
      Default:
      UNDEFINED