public interface ApplicationEventPublisher
ApplicationContext
.ApplicationContext
,
ApplicationEventPublisherAware
,
ApplicationEvent
,
EventPublicationInterceptor
Modifier and Type | Method and Description |
---|---|
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.
|
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