org.springframework.data.domain

## Annotation Type DomainEvents

    @Retention(value=RUNTIME)
     @Target(value={METHOD,ANNOTATION_TYPE})
    public @interface DomainEvents

`DomainEvents` can be used on methods of aggregate roots managed by Spring Data repositories to publish the events returned by that method as Spring application events.

Since:
  1.13
Author:
  Oliver Gierke
See Also:
  `ApplicationEventPublisher`, `AfterDomainEventPublication`