Package org.jmolecules.event.annotation
Annotation Type DomainEventPublisher
-
@Retention(RUNTIME) @Target({METHOD,ANNOTATION_TYPE}) @Documented public @interface DomainEventPublisher
Identifies a domain event publisher, i.e. logic to publish aDomainEvent
.- Since:
- 1.1
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description java.lang.String
publishes
Optional identification of the domain event published by this publisher.DomainEventPublisher.PublisherType
type
Marks the type of the publisher, i.e.
-
-
-
Element Detail
-
publishes
java.lang.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 ofDomainEvent.namespace()
andDomainEvent.name()
, separated by '.' (dot)- Default:
- ""
-
-
-
type
DomainEventPublisher.PublisherType 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:
- org.jmolecules.event.annotation.DomainEventPublisher.PublisherType.UNDEFINED
-
-