ApplicationEventPublisher.publishEvent

Notify all <strong>matching</strong> listeners registered with this application of an event. <p>If the specified {@code event} is not an {@link ApplicationEvent}, it is wrapped in a {@link PayloadApplicationEvent}. @param event the event to publish @since 4.2 @see PayloadApplicationEvent

  1. void publishEvent(ApplicationEvent event)
  2. void publishEvent(Object event)
    interface ApplicationEventPublisher
    void
    publishEvent
    (
    Object event
    )

Meta