org.springframework.data.domain.DomainEvents Java Examples

The following examples show how to use org.springframework.data.domain.DomainEvents. 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
@DomainEvents // <3>
Collection<SomeEvent> domainEvents() {
	return Collections.unmodifiableCollection(events);
}
 
Example #2
Source File: AbstractAggregateRoot.java    From spring-data-ebean with Apache License 2.0 4 votes vote down vote up
/**
 * All domain events currently captured by the aggregate.
 */
@DomainEvents
protected Collection<DomainEvent> domainEvents() {
    return Collections.unmodifiableList(domainEvents);
}
 
Example #3
Source File: Aggregate2.java    From tutorials with MIT License 4 votes vote down vote up
@DomainEvents
public Collection<DomainEvent> events() {
    return domainEvents;
}
 
Example #4
Source File: AbstractAggregateRoot.java    From salespoint with Apache License 2.0 2 votes vote down vote up
/**
 * Exposes the events to the publication infrastructure.
 *
 * @return the events to be published.
 */
@DomainEvents
Collection<Object> getEvents() {
	return Collections.unmodifiableCollection(events);
}