@FunctionalInterface public interface ApplicationEventPublisher
ApplicationContext
.ApplicationContext
,
ApplicationEventPublisherAware
,
ApplicationEvent
,
EventPublicationInterceptor
Modifier and Type | Method and Description |
---|---|
default void |
publishEvent(ApplicationEvent event)
Notify all matching listeners registered with this
application of an application event.
|
void |
publishEvent(Object event)
Notify all matching listeners registered with this
application of an event.
|
default void publishEvent(ApplicationEvent event)
event
- the event to publishRequestHandledEvent
void publishEvent(Object event)
If the specified event
is not an ApplicationEvent
,
it is wrapped in a PayloadApplicationEvent
.
event
- the event to publishPayloadApplicationEvent