Annotation Type DomainEventPublisher


@Retention(RUNTIME) @Target({METHOD,ANNOTATION_TYPE}) @Documented public @interface DomainEventPublisher
Identifies a domain event publisher, i.e. logic to publish a DomainEvent.
Since:
1.1
  • 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