org.springframework.data.domain.AfterDomainEventPublication Java Examples

The following examples show how to use org.springframework.data.domain.AfterDomainEventPublication. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: AnAggregateRoot.java    From sdn-rx with Apache License 2.0 4 votes vote down vote up
@AfterDomainEventPublication // <4>
void callbackMethod() {
	this.events.clear();
}
 
Example #2
Source File: AbstractAggregateRoot.java    From spring-data-ebean with Apache License 2.0 4 votes vote down vote up
/**
 * Clears all domain events currently held. Usually invoked by the infrastructure in place in Spring Data
 * repositories.
 */
@AfterDomainEventPublication
protected void clearDomainEvents() {
    this.domainEvents.clear();
}
 
Example #3
Source File: AbstractAggregateRoot.java    From salespoint with Apache License 2.0 4 votes vote down vote up
/**
 * Resets the events after publication.
 */
@AfterDomainEventPublication
void wipeEvents() {
	this.events.clear();
}
 
Example #4
Source File: Aggregate2.java    From tutorials with MIT License 4 votes vote down vote up
@AfterDomainEventPublication
public void clearEvents() {
    domainEvents.clear();
}