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 a
DomainEvent
.- Since:
- 1.1
-
Nested Class Summary
Nested Classes -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionOptional identification of the domain event published by this publisher.Marks the type of the publisher, i.e.
-
Element Details
-
publishes
String publishesOptional 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
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
-