Class DefaultPublishedEvents
java.lang.Object
org.springframework.modulith.test.DefaultPublishedEvents
- All Implemented Interfaces:
- EventListener,- ApplicationListener<ApplicationEvent>,- PublishedEvents,- TypedEvents
class DefaultPublishedEvents
extends Object
implements PublishedEvents, ApplicationListener<ApplicationEvent>
Default implementation of 
PublishedEvents.- Author:
- Oliver Drotbohm
- 
Nested Class SummaryNested classes/interfaces inherited from interface org.springframework.modulith.test.PublishedEventsPublishedEvents.TypedPublishedEvents<T>
- 
Constructor SummaryConstructorsConstructorDescriptionCreates a new, emptyDefaultPublishedEventsinstance.DefaultPublishedEvents(Collection<? extends Object> events) Creates a newDefaultPublishedEventsinstance with the given events.
- 
Method SummaryMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.springframework.context.ApplicationListenersupportsAsyncExecutionMethods inherited from interface org.springframework.modulith.test.TypedEventseventOfTypeWasPublished
- 
Constructor Details- 
DefaultPublishedEventsDefaultPublishedEvents()Creates a new, emptyDefaultPublishedEventsinstance.
- 
DefaultPublishedEventsDefaultPublishedEvents(Collection<? extends Object> events) Creates a newDefaultPublishedEventsinstance with the given events.- Parameters:
- events- must not be null.
 
 
- 
- 
Method Details- 
onApplicationEvent- Specified by:
- onApplicationEventin interface- ApplicationListener<ApplicationEvent>
 
- 
ofTypeDescription copied from interface:TypedEventsReturns all events of the given type.- Specified by:
- ofTypein interface- PublishedEvents
- Specified by:
- ofTypein interface- TypedEvents
- Type Parameters:
- T- the event type
- Parameters:
- type- must not be null.
- Returns:
 
- 
toString
 
-